Skip to content
Snippets Groups Projects
Commit 09c4df89 authored by srosse's avatar srosse
Browse files

OO-5059: option accept pending after capture too

parent 9a62d930
No related branches found
No related tags found
No related merge requests found
...@@ -199,6 +199,8 @@ public class PaypalCheckoutManagerImpl implements PaypalCheckoutManager { ...@@ -199,6 +199,8 @@ public class PaypalCheckoutManagerImpl implements PaypalCheckoutManager {
trx = checkoutProvider.captureOrder(trx); trx = checkoutProvider.captureOrder(trx);
if(PaypalCheckoutStatus.COMPLETED.name().equals(trx.getPaypalOrderStatus())) { if(PaypalCheckoutStatus.COMPLETED.name().equals(trx.getPaypalOrderStatus())) {
completeTransactionSucessfully(trx); completeTransactionSucessfully(trx);
} else if(PaypalCheckoutStatus.PENDING.name().equals(trx.getPaypalOrderStatus())) {
pendingTransaction(trx);
} else { } else {
completeDeniedTransaction(trx); completeDeniedTransaction(trx);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment