I am using a web video script that has Paypal integrated.
Upon attempting a live transaction to test, the process proceeds to Paypal, shows the transaction amount and returns to the web site suceessfully, however no amount is added to the website and no amount is deducted from the paypal user account.
After checking the paypal developer dashboard Event Logs, I see that Event showing “HTTP Status 201 OK”.
Also, upon processing a Live Transaction I see this in ‘Webserver SSL transfer log’:
...."GET /aj/wallet/get_paid?status=success&amount=1.00&token=6H326569M0899450A&PayerID=ZVLJWCX8ST4TS HTTP/2.0" 302 - "https://www.paypal.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36"
I’ve contacted Paypal support (and the website script developer). Paypal said this:
PayPal didn't receive API request to capture approved funds.
I don't know where/how to correct that.
And the web script developer isn't available to assist.
In the script’s files I see the paypal_config.php file, that looks like this:
Any suggestions/guidance is welcomed.
Upon attempting a live transaction to test, the process proceeds to Paypal, shows the transaction amount and returns to the web site suceessfully, however no amount is added to the website and no amount is deducted from the paypal user account.
After checking the paypal developer dashboard Event Logs, I see that Event showing “HTTP Status 201 OK”.
Also, upon processing a Live Transaction I see this in ‘Webserver SSL transfer log’:
...."GET /aj/wallet/get_paid?status=success&amount=1.00&token=6H326569M0899450A&PayerID=ZVLJWCX8ST4TS HTTP/2.0" 302 - "https://www.paypal.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36"
I’ve contacted Paypal support (and the website script developer). Paypal said this:
PayPal didn't receive API request to capture approved funds.
I don't know where/how to correct that.
And the web script developer isn't available to assist.
In the script’s files I see the paypal_config.php file, that looks like this:
Code:
$url = "https://api-m.sandbox.paypal.com";
if ($pt->config->paypal_mode == 'live') {
$url = "https://api-m.paypal.com";
}
$pt->paypal_access_token = null;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url . '/v1/oauth2/token');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "grant_type=client_credentials");
curl_setopt($ch, CURLOPT_USERPWD, $pt->config->paypal_id . ':' . $pt->config->paypal_secret);
$headers = array();
$headers[] = 'Content-Type: application/x-www-form-urlencoded';
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$result = curl_exec($ch);
curl_close($ch);
$result = json_decode($result);
if (!empty($result->access_token)) {
$pt->paypal_access_token = $result->access_token;
}
Any suggestions/guidance is welcomed.