'keys/AmazonPay_SANDBOX-AER6VDJV6NQSE2MJPQY7OQO7.pem', 'region' =""> 'DE', 'algorithm' =""> "> 'keys/AmazonPay_SANDBOX-AER6VDJV6NQSE2MJPQY7OQO7.pem', 'region' =""> 'DE', 'algorithm' =""> " />
HALLO
'SANDBOX-AER6VDJV6NQSE2MJPQY7OQO7', 'private_key' => 'keys/AmazonPay_SANDBOX-AER6VDJV6NQSE2MJPQY7OQO7.pem', 'region' => 'DE', 'algorithm' => 'AMZN-PAY-RSASSA-PSS-V2' ); try { $client = new Amazon\Pay\API\Client($amazonpay_config); $result = $client->getCheckoutSession($_GET['amazonCheckoutSessionId']); if ($result['status'] === 200) { $response = json_decode($result['response'], true); $checkoutSessionState = $response['statusDetails']['state']; $chargeId = $response['chargeId']; $chargePermissionId = $response['chargePermissionId']; // NOTE: Once Checkout Session moves to a "Completed" state, buyer and shipping // details must be obtained from the getChargePermission() function call instead $buyerName = $response['buyer']['name']; $buyerAddress = $response['buyer']['shippingAddress']; } else { // check the error echo 'status=' . $result['status'] . '; response=' . $result['response'] . "\n"; } } catch (Exception $e) { // handle the exception echo $e; } ?>Mitglied der Initiative "Fairness im Handel".
Informationen zur Initiative: https://www.fairness-im-handel.de