Midtrans is happy to launch Devsupport AI – a bot programmer that integrates Midtrans’ API with your code in a matter of minutes, fully guided.
This Snap PHP integration is going to be assisted by Devsupport AI. There are 3 main steps to complete:
Before proceeding any further, please make sure that you have followed the Getting Started - Preparation guide. Please also have your Access Keys (Client Key and Server Key) readily available.
Please follow the following steps for integration using Devsupport AI:
Install and open the App, you should see a screen below:
index.htmlfile in the folder.
The app will also provide you an HTML tag for you to initiate a payment. The tag looks like the following:
Info: Please modify the gross_amount and order_id accordingly.
If everything went smoothly, you can test the payment page by clicking the pay button. The Snap payment page will look like the following:
Please ensure that all notifications are handled properly in the
handle_notification.php file. Please refer to the Handling HTTP(S) Notification documentation page for more details.
For more details about PHP Snap integration, please refer to our step-by-step integration guide.
Is our wizard (or setup assistant, using Devsupport AI) helpful? Do you have any feedback? Please share your feedback here.