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
![Stick out tongue :P :P](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f61b.png)