Step 2a: Direct charge (optional)
POST {{direct_post_url}}
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 you use the clients bank account details to charge
them. No actual payment will be deducted on this request.
You can also specify success_redirect
and failure_redirect
in this request to return the customer to your website.
Request Body
[{"name"=>"s2s", "value"=>"true", "datatype"=>"boolean"}, {"name"=>"pm", "value"=>"ozow", "datatype"=>"string"}, {"name"=>"phone", "value"=>"27123456789", "datatype"=>"number"}]