Step 2: Create purchase
POST https://gate.reviopay.com/api/v1/purchases/
This request will generate a purchase
object. The purchase
object will contain a checkout_url
that you can redirect the customer to. You can also use the purchase_id
to perform a Direct charge
.
Remember to set force_recurring = true
to ensure a recurring token is generated for your client. Token is generated when your client makes a payment of R1 or more.
You can also specify success_redirect
and failure_redirect
in this request to return the customer to your website.