> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kibocommerce.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Pay with Amazon Technical Specs

<table class="appcard"><tbody><tr><td><img src="https://mintcdn.com/kibocommerce-59e68a4a/wnwrN32AISYXOyk6/img/1671437975325.png?fit=max&auto=format&n=wnwrN32AISYXOyk6&q=85&s=e372e96b23e6f0699d25fe5c5b0a66d9" alt="Amazon Payments logo" class="fr-fic fr-dii img-responsive" width="544" height="256" data-path="img/1671437975325.png" /></td></tr><tr><td><strong>Current Version:</strong> 1.0.0 (May 2015)<br /><strong id="isPasted">Platforms:</strong> Legacy eCommerce, KCCP eCommerce and eCommerce+OMS<br />[App Documentation](/pages/pay-with-amazon-application)</td></tr></tbody></table>

The [Pay with Amazon Application by Kibo eCommerce](/pages/pay-with-amazon-application) leverages the [API Extensions](/pages/what-you-can-do-with-api-extensions) framework to communicate with Amazon using the [Amazon Marketplace Web Service (MWS)](https://developer.amazonservices.com/). You can leverage features from both Kibo eCommerce and Amazon to test the functionality of the app before publishing it to your live site(s).

Testing any app is always a best practice, and is necessary if you have made any modifications to the sample code provided on [GitHub](https://github.com/Mozu/PayWithAmazon).

## Enable Detailed Logging

If you have API Extensions fully enabled on your developer account, you can view log files of all the code actions that have executed on your tenant:

1. In Admin, go to **Settings** > **System Administration** > **Action Management** to display the [Action Management JSON Editor](/pages/action-management-json-editor).
2. Change `defaultLogLevel` to `"info"`.
3. In the Dev Center console, go to **Logs** > **Action Logs**.
4. Select your tenant and click **Search** to see the actions.

## Enable Negative Testing on Your Sandbox

1. In Admin, go to **Settings** > **System Administration** > **Action Management** to display the Action Management JSON Editor.
2. Under the `embedded.commerce.payments.action.performPaymentInteraction`action, add the following configuration to enable Auth & Capture decline testing:
   ```
   {
   	  "actionId": "embedded.commerce.payments.action.performPaymentInteraction",
   	  "contexts": [
   		{
   	      "customFunctions": [
   			{
   			  "applicationKey": "<YOUR APPLICATION KEY>",
   			  "functionId": "embedded.commerce.payments.action.performPaymentInteraction",
   			  "enabled": true,
   			  "configuration" : { "payment" : {  "declineCapture": true, "declineAuth" : true } }
   			}
   		  ]
   		}
   	  ]
   	}
   ```
