This repository was archived by the owner on May 21, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 * returns Response Object
88 */
99
10- require_once 'ResponseParser.php ' ;
11- require_once 'HttpCurl.php ' ;
12- require_once 'ClientInterface.php ' ;
13- require_once 'Regions.php ' ;
14- if (!interface_exists ('\Psr\Log\LoggerAwareInterface ' )) {
15- require_once (__DIR__ .'/../Psr/Log/LoggerAwareInterface.php ' );
16- }
17-
18- if (!interface_exists ('\Psr\Log\LoggerInterface ' )) {
19- require_once (__DIR__ .'/../Psr/Log/LoggerInterface.php ' );
20- }
2110use Psr \Log \LoggerAwareInterface ;
2211use Psr \Log \LoggerInterface ;
2312
Original file line number Diff line number Diff line change 55 * Handles Curl POST function for all requests
66 */
77
8- require_once 'HttpCurlInterface.php ' ;
9-
108class HttpCurl implements HttpCurlInterface
119{
1210 private $ config = array ();
Original file line number Diff line number Diff line change 11<?php
2+
23namespace AmazonPay ;
34
45/* Class IPN_Handler
56 * Takes headers and body of the IPN message as input in the constructor
67 * verifies that the IPN is from the right resource and has the valid data
78 */
89
9- require_once 'HttpCurl.php ' ;
10- require_once 'IpnHandlerInterface.php ' ;
11- if (!interface_exists ('\Psr\Log\LoggerAwareInterface ' )) {
12- require_once (__DIR__ .'/../Psr/Log/LoggerAwareInterface.php ' );
13- }
14- if (!interface_exists ('\Psr\Log\LoggerInterface ' )) {
15- require_once (__DIR__ .'/../Psr/Log/LoggerInterface.php ' );
16- }
1710use Psr \Log \LoggerAwareInterface ;
1811use Psr \Log \LoggerInterface ;
1912
Original file line number Diff line number Diff line change 11<?php
2+
23namespace AmazonPay ;
34
45/* Class Regions
Original file line number Diff line number Diff line change 11<?php
2+
23namespace AmazonPay ;
34
45/* ResponseParser
56 * Methods provided to convert the Response from the POST to XML, Array or JSON
67 */
78
8- require_once 'ResponseInterface.php ' ;
9-
109class ResponseParser implements ResponseInterface
1110{
1211 public $ response = null ;
Original file line number Diff line number Diff line change 2222 ],
2323 "autoload" : {
2424 "psr-4" : {
25- "AmazonPay\\ " : " AmazonPay/"
25+ "AmazonPay\\ " : " AmazonPay/" ,
26+ "Psr\\ " : " Psr/"
27+ }
28+ },
29+ "autoload-dev" : {
30+ "psr-4" : {
31+ "AmazonPayTst\\ " :" tst/unit"
2632 }
2733 },
2834 "require" : {
Original file line number Diff line number Diff line change 1+ <phpunit
2+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3+ xsi : noNamespaceSchemaLocation =" http://schema.phpunit.de/3.7/phpunit.xsd"
4+ verbose =" true"
5+ checkForUnintentionallyCoveredCode =" true" >
6+ <testsuites >
7+ <testsuite name =" Test Amazon Pay Sdk PHP" >
8+ <directory >tst/unit</directory >
9+ </testsuite >
10+ </testsuites >
11+ </phpunit >
Original file line number Diff line number Diff line change 11<?php
2- namespace AmazonPay ;
2+ namespace AmazonPayTst ;
33
4- require_once 'AmazonPay/Client.php ' ;
5- require_once 'AmazonPay/ResponseParser.php ' ;
6- require_once 'Signature.php ' ;
4+ use AmazonPay \Client ;
5+ use AmazonPay \ResponseParser ;
76
87class ClientTest extends \PHPUnit_Framework_TestCase
98{
Original file line number Diff line number Diff line change 11<?php
2- namespace AmazonPay ;
2+ namespace AmazonPayTst ;
33
4- require_once ' AmazonPay/ IpnHandler.php ' ;
4+ use AmazonPay \ IpnHandler ;
55
66class IpnHandlertest extends \PHPUnit_Framework_TestCase
77{
Original file line number Diff line number Diff line change 11<?php
2- namespace AmazonPay ;
2+
3+ namespace AmazonPayTst ;
34
45class Signature
56{
You can’t perform that action at this time.
0 commit comments