PHPackages                             p7mydays/login-and-pay-with-amazon-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. p7mydays/login-and-pay-with-amazon-sdk-php

AbandonedLibrary[Payment Processing](/categories/payments)

p7mydays/login-and-pay-with-amazon-sdk-php
==========================================

Pay with Amazon SDK

08421PHP

Since Apr 13Pushed 6y ago1 watchersCompare

[ Source](https://github.com/p7mydays/login-and-pay-with-amazon-sdk-php)[ Packagist](https://packagist.org/packages/p7mydays/login-and-pay-with-amazon-sdk-php)[ RSS](/packages/p7mydays-login-and-pay-with-amazon-sdk-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

Login and Pay with Amazon PHP SDK
=================================

[](#login-and-pay-with-amazon-php-sdk)

Login and Pay with Amazon API Integration

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

[](#requirements)

- Login and Pay With Amazon account - [Register here](https://payments.amazon.com/signup)
- PHP 5.3 or higher
- Curl 7.18 or higher

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

[](#documentation)

- The Integration steps can be found [here](https://payments.amazon.com/documentation)

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 create-project amzn/login-and-pay-with-amazon-sdk-php --prefer-dist

```

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

[](#directory-tree)

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

```

\##Parameters List

\####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

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)

Setting configuration while instantiating the Client object

```
