Authorizing and charging IAP credits
In this recipe, we will complete the IAP service module. We will use the IAP platform to authorize and capture credit from the customer account. We will also add an optional configuration to save the service key generated in the Registering an IAP service in Odoo recipe of this chapter.
Getting ready
For this recipe, we will be using the iap_isbn_service
module.
As we are using the IAP sandbox service, we need to set an IAP endpoint in the system parameters. To set the IAP sandbox endpoint, follow these steps:
- Activate developer mode.
- Open Technical | Parameters | System Parameters.
- Create a new record and add a key and a value, as follows:
How to do it...
In order to complete the service module, we will add a configuration option to the store service key. Follow these steps to add a new field to set isbn_service_key
in the general...