Determine if the user approved the payment or not
OrderId could be retrieved by parsing the object inside related_resources.
Call void method on order object. You will get an Order Object back
NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY
NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY
NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY
Void Order Sample
Use this call to void an existing order. Note: An order cannot be voided if payment has already been partially or fully captured. API used: POST /v1/payments/orders//do-void