How to simulate a charge in Sandbox?

After you have set up our XanPay widget onto your platform, you can now test the checkout flow that you and your customers will experience. Testing the flow with sandbox mode will help you answer the following questions:

  • What will my customers see on the checkout page? 
  • How will my customers pay?
  • What will I see on my dashboard when a customer has successfully made a payment?
  • Can I ensure that my system is notified when an update occurs on XanPay?

Charge Creation and Completion

  1. After you have set up the checkout widget, you should be able to see widget interface that are similar to that of the demo’s here.                                              
  2. Enter a an email and phone number. You may use our Sandbox phone number (+65 12345678901) and Sandbox verification code (123456).      
  3. Click ‘Pay’, and you should be able to see the payment instructions. Note that these are not real payment instructions and are only meant to simulate the experience.
  4. Go to ‘Charges’ tab on your dashboard: https://dashboard.xanpay.com/charges 
    1. Search for the Charge ID shown with the payment instructions.
    2. The charge’s status should be ‘Pending’. 
    3. Select the charge
  5. Click on 'Complete charge' to simulate what happens when a user transfer the amount via their payment app, in other words, to simulate ‘charge’ completion (when payment has been made). 
  6. You should be able to see the below successful status messages, and receive an email confirmation on the payment received.                                           

Screenshot_2022-08-18_at_3.16.30_PM.png

Screenshot_2022-08-18_at_3.21.41_PM.png

Screenshot_2022-08-18_at_3.23.57_PM.png

Screenshot_2022-08-18_at_3.27.49_PM.png

Screenshot_2022-08-18_at_3.29.40_PM.png

Screenshot_2022-08-18_at_4.19.38_PM.png         Screenshot_2022-08-18_at_3.32.15_PM.png

 

Screenshot_2022-08-18_at_3.36.06_PM.png

 

Screenshot_2022-08-18_at_3.36.22_PM.png