How to simulate a refund in Sandbox?

After you have completed a charge in the 'How to simulate a charge in Sandbox' article, you can now test the refund flow that you and your customers will experience.  Testing the refund flow with sandbox mode will help you answer the following questions:

  • How do I initiate a refund? 
  • What happens after I initiate a refund? 
  • How can a customer get a refund once it is initiated?

1) Go to ‘Charges’ tab on your dashboard: 

- Click on the charge you want to perform a refund for 

- On the top right corner of ‘Charge details’, click ‘Refund’ 



2) Click ‘Refund all’ or edit the amount you want to refund 



3) A refund confirmation link will be sent to your customer:

- In this Sandbox testing case, you are simulating the customer's actions as well. Hence, click on the link generated to simulate what your customer will see

- Customers will have to first verify their phone number. Enter the Sandbox phone number (+65 12345678901) and Sandbox verification code (123456)



4) Select the payment method that you will like your refund to be proceeded with. In this example, we have selected Singapore's PayNow method. This requires a mobile number. You may proceed with using the Sandbox phone number (+65 12345678901) and Sandbox verification code (123456) once again.



5) Click ‘Complete Refund’                                                                                             

- Head back to your charge details’ page on your dashboard. You will see that the amount has been refunded.




6) That's all! You will then be able to view the refund's ID, and all the transaction's activity at the bottom of the page.