The Amazon Pay integration allows you to sell physical goods and services through Alexa with the whole purchase flow being handled inside the voice experience.
The following documentation will only contain Jovo specific features like helper functions or
project.js modifications. Please use the official Amazon documentation for the JSON interfaces, guidelines, etc. You can find them here
To use Amazon Pay you have to add it to the permissions your skill needs. For that add the following to your
After that build and deploy the files:
To check whether the user granted you the permission you can use the following helper methods:
If the user didn't provide the permission you can prompt them to grant the permission by showing them a card in the Alexa app:
Charge directive are simply JS objects which you can add to the response using the
The request you will receive as the response to the directive,
Connections.Response will be mapped to the Jovo built-in
For the reference for both the
Charge directive, please use the official Amazon documentation which you can find here.