Payment Buttons
Our low-code Payment Buttons allow Pi to be accepted easily without writing lots of code.
Generating a Payment Button
Go to the "Payment Buttons" section of the Gateway Dashboard and click "Create a Payment Button".
Enter the amount, memo, success URL and cancel URL. These URLs will redirect the user back to your app on payment completion or cancellation.
Check "Sandbox Mode" to make all payments created with this button a Sandbox mode payment.
Click 'Create', then click 'Show Code' on the new button object.
Copy and paste the code into the app where you wish there to be a payment button. Done!
Ensure you have Axios installed in your application to use our payment buttons.
Payment buttons can work both with and without a webhook.
Webhooks will automatically send if you have them set up on your account.
Last updated