ECPay provides a “Simulated Payment” function that allows you to verify if your ReturnURL can successfully receive transaction result notifications sent by ECPay.
Step 1: Create an Order in the Test Environment
Create an ATM order and complete the number generation process.
Step 2: Trigger the Simulated Payment Function in the ECPay Stage Dashboard
1.Log in to the ECPay Merchant Backend (
Click Here).
2.Navigate to: General Order Query(一般訂單查詢) > All-In-One Payment Orders(全方位金流訂單) > Merchant Order Number(廠商訂單編號) > Query(查詢).
3.Click the “Simulated Payment(模擬付款)” button.
Once you click the “Simulated Payment” button, ECPay will send a “Simulated Payment Success” notification to the ReturnURL you specified when creating the order. The purpose of this function is to verify whether your configured ReturnURL can properly receive ECPay notifications.
Important Notes:
This notification is for simulation purposes only and does not represent an actual payment. It will not change the order status.
In the returned parameters, SimulatePaid=1 indicates that this is a simulated payment notification. Please do not change the order status upon receiving this notification to avoid any losses.
An alert message will also appear on the webpage as a reminder.
After clicking “Confirm” again, ECPay will send the simulated payment notification.
If the ReturnURL successfully receives the payment notification and correctly responds with 1|OK to ECPay, the page will display the following success message.
If ECPay does not receive the 1|OK response from your ReturnURL, the page will display the following failure message.
Troubleshooting:
If the ReturnURL did not receive ECPay’s notification:
►Ensure that the ReturnURL you configured is accessible externally and can be reached from outside your company’s domain.
►Check whether your server has a firewall enabled. If not, it might block the payment notification.
►Due to security policies, ECPay only supports PORT 80 or PORT 443. If your ReturnURL specifies a different port, it will not be able to receive notifications from ECPay.
If the ReturnURL received ECPay’s notification but did not correctly respond with 1|OK:
►Verify that your ReturnURL correctly responded with 1|OK after receiving the ECPay notification.
►Ensure the response format is correct: 1|OK. (Common errors: 1OK, OK).