PHPackages                             rkr/amazon-pay-sdk-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. rkr/amazon-pay-sdk-php

ActiveLibrary[Payment Processing](/categories/payments)

rkr/amazon-pay-sdk-php
======================

Amazon Pay SDK (PHP)

3.1.0(9y ago)01.2kApache OSL-2PHPPHP &gt;=5.5.0

Since Dec 29Pushed 8y ago1 watchersCompare

[ Source](https://github.com/rkrx/amazon-pay-sdk-php)[ Packagist](https://packagist.org/packages/rkr/amazon-pay-sdk-php)[ Docs](https://github.com/amzn/amazon-pay-sdk-php)[ RSS](/packages/rkr-amazon-pay-sdk-php/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)DependenciesVersions (12)Used By (0)

Amazon Pay SDK (PHP)
====================

[](#amazon-pay-sdk-php)

Amazon Pay API Integration

Requirements
------------

[](#requirements)

- Amazon Pay account:
- [US - Registration](https://pay.amazon.com/us/signup)
- [UK - Registration](https://pay.amazon.com/uk/signup)
- [DE - Registration](https://pay.amazon.com/de/signup)
- [JP - Registration](https://pay.amazon.com/jp/contactsales)
- PHP 5.5 or higher
- Curl 7.18 or higher

Support for PHP 5.3 and 5.4 is being deprecated. The SDK will work in these older environments, but future versions may not. We encourage merchants to move to a newer version of PHP at their earliest convenience.

Documentation
-------------

[](#documentation)

- Integration steps can be found below:
- [US](https://pay.amazon.com/us/developer/documentation)
- [UK](https://pay.amazon.com/uk/developer/documentation)
- [DE](https://pay.amazon.com/de/developer/documentation)
- [JP OneTime](https://m.media-amazon.com/images/G/09/AmazonPayments/LoginAndPayWithAmazonIntegrationGuide_JP.pdf)
- [JP AutoPay](https://m.media-amazon.com/images/G/09/AmazonPayments/LoginAndPayWithAmazonRecurringPaymentsIntegrationGuide_JP.pdf)
- [JP API Reference](https://m.media-amazon.com/images/G/09/AmazonPayments/PayWithAmazonApiReferenceGuide_JP.pdf)

Sample
------

[](#sample)

- View the sample integration demo [here](https://amzn.github.io/login-and-pay-with-amazon-sdk-samples/)

Quick Start
-----------

[](#quick-start)

Instantiating the client: Client Takes in parameters in the following format

1. Associative array
2. Path to the JSON file containing configuration information.

Installing using Composer
-------------------------

[](#installing-using-composer)

```
composer require amzn/amazon-pay-sdk-php

```

Directory Tree
--------------

[](#directory-tree)

```
.
├── composer.json - Configuration for composer
├── LICENSE.txt
├── NOTICE.txt
├── AmazonPay
│   ├── Client.php - Main class with the API calls
│   ├── ClientInterface.php - Shows the public function definitions in Client.php
│   ├── HttpCurl.php -  Client class uses this file to execute the GET/POST
│   ├── HttpCurlInterface.php - Shows the public function definitions in the HttpCurl.php
│   ├── IpnHandler.php - Class handles verification of the IPN
│   ├── IpnHandlerInterface.php - Shows the public function definitions in the IpnHandler.php
│   ├── Regions.php -  Defines the regions that is supported
│   ├── ResponseParser.php -  Parses the API call response
│   └── ResponseInterface.php - Shows the public function definitions in the ResponseParser.php
├── README.md
└── UnitTests
    ├── ClientTest.php
    ├── config.json
    ├── coverage.txt
    ├── IpnHandlerTest.php
    └── Signature.php

```

Parameters List
---------------

[](#parameters-list)

#### Mandatory Parameters

[](#mandatory-parameters)

Parametervariable nameValuesMerchant Id`merchant_id`Default : `null`Access Key`access_key`Default : `null`Secret Key`secret_key`Default : `null`Region`region`Default : `null`
Other: `us`,`de`,`uk`,`jp`#### Optional Parameters

[](#optional-parameters)

ParameterVariable nameValuesCurrency Code`currency_code`Default : `null`
Other: `USD`,`EUR`,`GBP`,`JPY`Environment`sandbox`Default : `false`
Other: `true`Platform ID`platform_id`Default : `null`CA Bundle File`cabundle_file`Default : `null`Application Name`application_name`Default : `null`Application Version`application_version`Default : `null`Proxy Host`proxy_host`Default : `null`Proxy Port`proxy_port`Default : `-1`Proxy Username`proxy_username`Default : `null`Proxy Password`proxy_password`Default : `null`LWA Client ID`client_id`Default : `null`Handle Throttle`handle_throttle`Default : `true`
Other: `false`Setting Configuration
---------------------

[](#setting-configuration)

Your Amazon Pay keys are available in your Seller Central account

Setting configuration while instantiating the Client object

```
