English
API ReferenceSign In

Testing QR Codes

Last updated 05/12/2020

Testing QR codes payments

  1. Create a secret API key for development mode.
  2. Follow and refer to our API reference for details on request requirements
  3. Send a ‘POST’ request to https://api.xendit.co/qr_codes using your development API key

To simulate a successful payment, please follow the information below:

  1. Create a dynamic or static QR string using https://developers.xendit.co/api-reference/#create-qr-code

  2. Render the QR code as an image using one of the following resources

    1. Web generator
    2. Node
    3. PHP
    4. Java
  3. 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)

  4. Check that callback has been received in the callback URL provided.