Skip to content

Commit

Permalink
#739 - do not request refund_application_fee if there is no applicati…
Browse files Browse the repository at this point in the history
…on fee to refund

(cherry picked from commit 909b3e6)
  • Loading branch information
cbellone committed Sep 4, 2019
1 parent 7b9722e commit 1df9c53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/alfio/manager/payment/BaseStripeManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ boolean refund(Transaction transaction, Event event, Integer amountToRefund) {
Map<String, Object> params = new HashMap<>();
params.put("charge", chargeId);
amount.ifPresent(a -> params.put("amount", a));
if(isConnectEnabled(new PaymentContext(event))) {
if(transaction.getPlatformFee() > 0 && isConnectEnabled(new PaymentContext(event))) {
params.put("refund_application_fee", true);
}

Expand Down

0 comments on commit 1df9c53

Please sign in to comment.