Payment Xendit and Midtrans
Last updated
Was this helpful?
Last updated
Was this helpful?
Tutorial in Video:
How to use it:
Create a virtual account
Url for sandbox/testing:
Url for production:
POST
{{url}}api/payment/create-custom-va
company*
EPD
EPD (Edrus Pasar Digital), JUT(Yayasan Satu Juta Pengusaha), ESD(Edrus Strategy Digital)
external_id*
YG123
Unique key
bank_code*
BNI
BNI, MANDIRI, BRI
name*
imam
name of the user that has the bill
expected_amount*
100000
Must be integer
callback_url
www.yoursite.com/callbackurl
Your callback site
payment_type*
String
midtrans, xendit
Testing callback payment for Xendit
POST
{{url}}payment/xendit/testing-callback-sandbox
External ID that we use when we hit the create a virtual account
company*
EPD
EPD (Edrus Pasar Digital), JUT(Yayasan Satu Juta Pengusaha), ESD(Edrus Strategy Digital)
amount*
10000
Must be associate with expected_amount
external_id*
COM475804036622
Testing callback payment for Midtrans
For example, i have created a bca virtual account on testing, and i want to pay it, then open the url and click this.
Then copy the account number from the response of create virtual account.
And paste it
then click inquire
It should be returned the amount that we want to pay. and finally you just hit the pay button.
Url for sandbox/testing:
Url for production:
Midtrans, you can reference to it's site on