Developer mode
Developer mode lets you quickly test the SDK payment and refund responses and errors with minimal preparation. You do not need a card reader, authorisation flow, or have a Zettle merchant account.
Developer mode is available in the Android SDK. You can use it in your own project. Also, you can try it out in the Android example app.
It is disabled by default. When developer mode is enabled, no backend requests will be made for transactions.
In the Android SDK example app, you can use developer mode as follows in supported test cases:
- Evaluate SDK responses and input data format that are difficult to reproduce for business and integration feasibility.
When you are integrating the SDK into your own app, you can use developer mode as follows in supported test cases:
- Check the responses from SDK outputs and errors that are difficult to reproduce.
Before releasing your integration, make sure that the developer mode is disabled.
Developer mode does not validate the input value that you provide to the SDK for payment and refund flows in supported test cases. For example, if the input for a payment is a negative amount, the input will be accepted.
After you launch a payment or refund flow with developer mode enabled, you can select the following test cases in the UI.
Note: The following list of test cases includes only SDK outputs that are difficult to reproduce.
- Successfully paid
- Cancelled by customer
- Technical error
- Successful refund
- Payment not found
- Not refundable
- Technical error
- Successfully paid with PayPal
- Successfully paid with Venmo
- Cancelled by customer
- Technical error
- Successful PayPal refund
- Successful Venmo refund
- Payment not found
- Insufficient funds
- Failed