Testing QR codes payments
- Create a secret API key for development mode.
- Follow and refer to our API reference for details on request requirements
- Send a ‘POST’ request to
https://api.xendit.co/qr_codesusing your development API key
To simulate a successful payment, please follow the information below:
Create a dynamic or static QR string using https://developers.xendit.co/api-reference/#create-qr-code
Render the QR code as an image using one of the following resources
Once it is confirmed that QR string can rendered, simulate a complete payment using our simulate payment endpoint https://developers.xendit.co/api-reference/#simulate-payment-for-completion-of-payment-in-test-mode-. (in sandbox, it is more stable to test with simulate endpoint as different wallet apps behave differently)
Check that callback has been received in the callback URL provided.