Developer mode
Developer mode lets you quickly test the SDK payment- and refund responses & 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 iOS SDK. You can use it in your own project. Also, you can try it out in the iOS example app.
Developer mode is disabled by default. When enabled, no backend requests will be made for transactions.
In the iOS SDK example app, you can use developer mode in the following 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 in the following supported test cases:
- Validate the input (valid format of provided amount and reference) to the SDK for payment and refund flows.
- 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.
For information on how to enable developer mode, see Testing payment and refund
Developer mode validates the input that you provide to the SDK for payment and refund flows in supported test cases. For example, it validates that the input has the valid format.
After you launch a payment- or refund flow with developer mode enabled, you can select the following test cases in the UI:
- Successfully paid
- Cancelled by customer
- Technical error
- Card declined by bank
- Wrong amount format entered (without spinner presented - error will be returned immediately)
- Successful refund
- Payment not found
- Not refundable
- Technical error (For example, Zettle server not responding)
- Successfully paid with PayPal
- Successfully paid with Venmo
- Cancelled by customer
- Technical error (For example, Zettle server not responding)
- Wrong amount format entered (without spinner presented - error will be returned immediately)
- Successful PayPal refund
- Successful Venmo refund
- Payment not found
- Insufficient funds
- Failed
- Successfully Paid
- Cancelled by Merchant
- Technical Error (For example, Zettle server not responding)
- Successful refund
- Payment not found
- Not refundable
- Technical error