Testing

Testing the payment feature requires an app that uses any Gini SDK and can create payment requests, for example, Gini Health SDK. You can use it to create payment requests and forward them to your banking app to view and resolve those payment requests.

An example app is available in the Gini Health SDK’s repository. In order to test using our example health app, use development client credentials. This ensures that Gini Health SDK uses a payment provider which opens your development banking app. To inject your Gini Bank API credentials into the health example app, fill in your credentials.

Also, replace the ginipay-bank URL scheme in the example health app’s LSApplicationQueriesSchemes in the Info.plist with the Gini Pay URL scheme we provide for your banking app.
For the example implementation you can use our example app.

End-to-end testing

After you set the client credentials in Gini Health SDK’s example app, start the payment flow with a document import or by taking a photo. After following the integration steps above, your banking app is launched and you’re able to fetch the payment request, show the payment information and resolve the payment after the transaction is confirmed. At this point, you can redirect back to the health app.

With these steps completed, you verify that your app, the Gini Bank API, Gini Health SDK, and Gini Bank SDK work together correctly.

Testing in production

The steps are the same, but instead of the development client credentials, use production client credentials. This ensures that Gini Health SDK receives real payment providers including the one which opens your production banking app.

For testing the flow using the example health app, add your banking app’s production Gini Pay URL scheme to LSApplicationQueriesSchemes in the example health app’s Info.plist. Also, make sure that production client credentials are used before installing it. You can also test with a real health app. Contact us in case you don’t know which health app(s) to install for starting the payment flow.