Summary
When a customer cancels a transaction and clicks āBack to Merchant Pageā on the Snap payment page, they are redirected to the Finish URL. This behavior is misleading because the transaction is actually cancelled, not successfully completed.
We propose adding a new redirect field named Return/Cancel URL to properly handle this user-initiated cancellation scenario.
Steps to Reproduce
- Create a Snap Redirect transaction.
- On the Snap payment page, the customer cancels the payment process.
- The Customer clicks āBack to Merchant Pageā.
- Snap redirects the customer to the Finish URL (e.g., https://dukodu.id/finish-payment).
Actual Behavior
The system redirects the user to the Finish URL, which is designed for successful payment completion.
Expected Behavior
When a user cancels the transaction or clicks āBack to Merchant Pageā, Snap should redirect to a dedicated Return/Cancel URL (e.g., https://dukodu.id/cancel-payment).
This allows merchants to:
- Display a āPayment Cancelledā or āTransaction Abortedā message,
- Offer the option to retry or choose another payment method,
- Clearly distinguish this state from successful payments.
Impact
- Users may believe their payment was successful when it was actually cancelled.
- Business systems may misinterpret the transaction state.
- Increases confusion and potential customer support tickets.
- Degrades overall user experience (UX).
Proposed Solution
Add a third redirect field under Redirection Settings on the Midtrans Dashboard:
- Finish URL: Redirect for successful/settled transactions
- Error URL: Redirect for failed or technical error transactions
- Return/Cancel URL: Redirect for user-initiated cancellations or āBack to Merchantā actions
Attachments


Summary
When a customer cancels a transaction and clicks āBack to Merchant Pageā on the Snap payment page, they are redirected to the Finish URL. This behavior is misleading because the transaction is actually cancelled, not successfully completed.
We propose adding a new redirect field named Return/Cancel URL to properly handle this user-initiated cancellation scenario.
Steps to Reproduce
Actual Behavior
The system redirects the user to the Finish URL, which is designed for successful payment completion.
Expected Behavior
When a user cancels the transaction or clicks āBack to Merchant Pageā, Snap should redirect to a dedicated Return/Cancel URL (e.g., https://dukodu.id/cancel-payment).
This allows merchants to:
Impact
Proposed Solution
Add a third redirect field under Redirection Settings on the Midtrans Dashboard:
Attachments