If you have selected Midtrans as the Payment Gateway, follow the below steps for configuration:
- Under Account Information, enter your Server Key. You will find this in your Midtrans dashboard > Settings > Access Keys.
- IDR is the only supported Currency for transactions.
- Enter the Payment Amount. You can either set a fixed amount for payment or autofill the Payment Amount with a value from a form field.
- Under Payment Methods, you can either choose the payment method from the available options or use the payment methods configured in your Midtrans Dashboard.
- If you choose Select payment methods, you can select the payment methods that must be listed for customers to pay.
If you choose Use payment methods configured in Midtrans Dashboard, all the payment methods enabled in your Midtrans dashboard > Settings > Snap Preferences > System Settings will be displayed.
- To test the payment gateway with your form, select Sandbox Mode. Payments made using the sandbox mode will not involve real time transaction.
Note: While testing make sure to change the Environment to Sandbox in Midtrans dashboard and use the test credentials.
Webhook Configuration
For the payment status to be updated in the All Entries section of your form, you must configure the Webhook. To do so,
- Under Webhook Configuration, copy the Webhook URL.
- In your Midtrans account's dashboard, navigate to Settings > Payment > Notification URL > Payment notification URL and paste the copied Webhook URL.
- Save the changes.
Note :
- Payment status via webhooks will be updated as long as your webhook is active.
- The payment status will be marked as Completed exclusively for transactions that have been successfully processed. In all other cases, the status will be marked as Processing. You can check the status of those payments in the Midtrans dashboard > Transactions.
Under Customer Information, you can include the First Name, Last Name, Email, Phone Number of your customer by mapping them to your form fields. You can find these values mapped to the Midtrans transaction details.
Under Shipping Information, you can include the First Name, Last Name and Address of your customer by mapping them to the corresponding form fields. You can find these values mapped to the Midtrans transaction details.
Customizing Midtrans payment page
If you wish to add header, logo, customize the font, color and style of the Midtrans payment page, then
- In your Midtrans dashboard, navigate to Settings > Snap Preferences > Theme and Logo.
- Save the changes once done.
Payment methods
Using Midtrans, you can support alternate payment methods making it simpler for your customers to make payments.
Credit Card: Supports payment via credit or debit cards with VISA, MasterCard, JCB, or Amex logo. It supports both local and international banks for a quick and secure online payments.
BCA Virtual Account: BCA Virtual Account is a virtual payment method offered by Bank BCA. Users can pay using their BCA Bank account.
Permata Virtual Account: Permata Virtual Account is a virtual payment method facilitated by Bank Permata. Users can pay using any Indonesian Bank account.
BNI Virtual Account: BNI Virtual Account is a virtual payment method facilitated by Bank BNI. Users can pay using any Indonesian Bank account.
CIMB Virtual Account: CIMB Virtual Account is a bank transfer method facilitated by Bank CIMB Niaga. Users can pay using any Indonesian Bank account.
BRI Virtual Account: BRI Virtual Account is a virtual payment method facilitated by Bank BRI. Users can pay using any Indonesian Bank account.