/**
  * Create a new instance of the simple checkout example
  * case
  *
  * @param OffAmazonPaymentsService_Client $service                instance of the
  *                                                                service client
  * @param string 						  $amazonOrderReferenceId an order reference
  *                                                                object in draft
  *                                                                state to use in the example                                                                
  * @param string                          $orderTotalAmount       amount to authorize 
  *                                                                from the buyer
  *
  * @return new CancellationExample
  */
 public function __construct($service, $amazonOrderReferenceId, $orderTotalAmount)
 {
     $this->_service = $service;
     $this->_amazonOrderReferenceId = $amazonOrderReferenceId;
     /*
      * Setup shared identifiers for the series of transaction requests
      */
     $this->_authorizationReferenceId = str_replace("-", "", $this->_amazonOrderReferenceId) . "a01";
     $this->_sellerId = $this->_service->getMerchantValues()->getMerchantId();
     $this->_orderTotalAmount = $orderTotalAmount;
     $this->_currencyCode = $service->getMerchantValues()->getCurrency();
 }
 *  You may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at:
 *  http://aws.amazon.com/apache2.0
 *  This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 *  CONDITIONS OF ANY KIND, either express or implied. See the License
 *  for the
 *  specific language governing permissions and limitations under the
 *  License.
 * *****************************************************************************
 */
 -->
<!DOCTYPE html>
<?php 
require_once realpath(dirname(__FILE__) . "/../.config.inc.php");
require_once "OffAmazonPaymentsService/Client.php";
$client = new OffAmazonPaymentsService_Client();
$merchantValues = $client->getMerchantValues();
?>

<html>
    <head>
        <title>Wallet page</title>
        <style>
            #AmazonWalletWidget, #AmazonConsentWidget {width: 400px; height: 228px;}
        </style>
        <script type="text/javascript">
                window.onAmazonLoginReady = function () {
                    amazon.Login.setClientId('<?php 
print $merchantValues->getClientId();
?>
');