Skip to content

Instantly share code, notes, and snippets.

@islandskater43
islandskater43 / ip-ranges.json
Last active November 18, 2016 23:19
Amazon IP Ranges
{
"syncToken": "1479494948",
"createDate": "2016-11-18-18-49-08",
"prefixes": [
{
"ip_prefix": "13.32.0.0/15",
"region": "GLOBAL",
"service": "AMAZON"
},
{
@islandskater43
islandskater43 / GetOrderReferenceDetails.php
Last active February 17, 2016 09:51
PHP GetOrderReferenceDetails
<?php
namespace PayWithAmazon;
require_once 'Client.php';
// Your Login and Pay with Amazon keys are available in your Seller Central account
// PHP Associative array
$config = array('merchant_id' => 'YOUR_MERCHANT_ID',
'access_key' => 'YOUR_ACCESS_KEY',
'secret_key' => 'YOUR_SECRET_KEY',
@islandskater43
islandskater43 / authorize.php
Last active August 29, 2015 14:22
Authorize Script for Pay with Amazon
<?php
// include Pay with Amazon SDK - available here: https://github.com/amzn/login-and-pay-with-amazon-sdk-php/
require('Client.php');
// set config values
$config = array('merchant_id' => '',
'access_key' => '',
'secret_key' => '',
@islandskater43
islandskater43 / LoginAndPay.php
Last active August 29, 2015 14:15
Simple PHP SDK for Amazon's Login and Pay Product
<?php
class LoginAndPayWithAmazon {
private $sandbox;
private $merchantId;
private $accessKey;
private $secretKey;
// find your endpoint here: http://docs.developer.amazonservices.com/en_US/dev_guide/DG_Endpoints.html
private $endpoint = 'https://mws.amazonservices.com';
@islandskater43
islandskater43 / widget.phtml
Last active August 29, 2015 14:15
Add 'Change Payment Method' button to Onepage Checkout
<?php
/**
* Amazon Payments
*
* @category Amazon
* @package Amazon_Payments
* @copyright Copyright (c) 2014 Amazon.com
* @license http://opensource.org/licenses/Apache-2.0 Apache License, Version 2.0
*/
?>