Collections/Payins - Redirect

We provide the following product/services via API to merchants for collections across channels

Environment Urls

Sandbox: https://devbox.paydestal.com/pay
Prod:    https://api.paydestal.com/pay
  • Virtual Accounts

  • Card Processing

  • USSD Processing

  • Pay Redirect

Payment Redirect

You can call the Initialize Transaction Endpoint from your server to generate a checkout link, then redirect your users to the link so they can pay. After payment is made, the users are returned to your provided link in the callbackUrl Default currency is presumed NGN except when specified differently.



< <form id="paymentForm" action="/saveAndPay" method="POST">
    <input type="hidden" name="customerEmail" id="customerEmail">
    <input type="hidden" name="amount" id="amount">
    <input type="hidden" name="reference" id="reference">
    <button type="submit" name="payBtn" id="pay-now" title="Pay now">Pay now</button>
  </form>

  <script>
     
    const email = "[email protected]";  
    const amount = 4500;  
    const reference = "23445yyt";  

    // Populate the hidden input fields with values
    document.getElementById('customerEmail').value = email;
    document.getElementById('amount').value = amount;
    document.getElementById('reference').value = reference;
  </script>

Last updated