To authorize an order payment, pass the orderId in the URI of a POST call. This begins the process of confirming that funds are available until it is time to complete the payment transaction. API used: POST /v1/payments/orders//authorize
Determine if the user approved the payment or not
OrderId could be retrieved by parsing the object inside related_resources.
with Amount in it
Capture the order by passing capture object we created. We will get a new capture object back.
Capture Order Sample
To authorize an order payment, pass the orderId in the URI of a POST call. This begins the process of confirming that funds are available until it is time to complete the payment transaction. API used: POST /v1/payments/orders//authorize