PHPackages                             connox/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. connox/amazon-pay-sdk-php

ActiveLibrary[Payment Processing](/categories/payments)

connox/amazon-pay-sdk-php
=========================

Fixed fork of Amazon Pay SDK (PHP)

3.7.1.3(3y ago)117.3k↓50%2Apache-2.0PHPPHP ^8.0

Since Dec 29Pushed 3y agoCompare

[ Source](https://github.com/Connox/amazon-pay-sdk-php)[ Packagist](https://packagist.org/packages/connox/amazon-pay-sdk-php)[ Docs](https://github.com/amzn/amazon-pay-sdk-php)[ RSS](/packages/connox-amazon-pay-sdk-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (23)Used By (0)

This fork only works, when this is used via composer and implements fixes for PHP 8.x

- Removed psr files from repository
- Removed phar file creation tool
- Added missing php extension requirements
- Supports only PHP 8.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](https://pay.amazon.com/jp/developer/documentation)

Sample
------

[](#sample)

- View the [Amazon Pay SDK samples](https://amzn.github.io/amazon-pay-sdk-samples/)

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

[](#quick-start)

The 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

```
