This can be performed by either doing running run_all.py or by following the instructions below
-
To test creating an order, run
create_order.py -
To approve your order, copy approve link into your browser and follow the instructions. When you're redirected to a different website move on to step 3.
-
Copy the Order ID from the response after creating order and replace the
order_idvariable inauthorize_order.pywith and run the script to authorize the payment. -
Copy the Authorization ID from the response and replace
authorization_idvariable incapture_order.pyto capture the payment. -
Copy the Capture ID from the response and replace
capture_idvariable inrefund_order.pyto refund the payment.