What is the best way to validate / test refunding a purchasbles? Similarly, how do I check if the refunded value is partial vs full?
I believe $purchaseRequest = $state->getPurchaseRequest(); $purchaseRequest->cost; would get me the original cost, but I'm how do I leverage the refunded amount returned back by the payment provider? In PayPal's case, this would be mc_gross/payment_gross (which I'm not sure what the difference is from PayPal on mc_gross / payment_gross either )).
Читать далее...
I believe $purchaseRequest = $state->getPurchaseRequest(); $purchaseRequest->cost; would get me the original cost, but I'm how do I leverage the refunded amount returned back by the payment provider? In PayPal's case, this would be mc_gross/payment_gross (which I'm not sure what the difference is from PayPal on mc_gross / payment_gross either )).
Читать далее...