GlisWeb framework
|
Vai al codice sorgente di questo file.
Variabili | |
if (isset($_REQUEST[ 'productId']) &&! empty($_REQUEST[ 'productId'])) | |
$dati = json_decode( file_get_contents('php://input'), true ) | |
if(is_array( $dati)) | $_REQUEST ['debug']['SDK_VERSION'] = Amazon\Pay\API\Client::SDK_VERSION |
$provider = 'amazonpay' | |
$fileRicevuta = 'var/log/payments/amazonpay/amazonpay.starter.' . time() . '.log' | |
$amazonpay_config | |
$payload | |
$headers = array('x-amz-pay-Idempotency-Key' => uniqid()) | |
try | |
$result = $client->createCheckoutSession($payload, $headers) | |
if($result['status']===201) | else |