Paypal Error - getTransactionFee Method Does Not Exist

I have a custom website with a built-in custom shopping cart. I use the Paypal API standard payment method to send shopping cart information to Paypal, and then return the return URL to the order_process.php page. When he returns to my site, the code will update the information in our database to subscribe participants to events, give them membership, etc.

Everything worked fine until Paypal checked our account due to a large increase in payments over a short period of time.

I spoke with a supervisor at Paypal and they removed the flag from our account.

We have not changed anything on our part, but now the site is not working correctly. He sends the information to Paypal, successfully accepts the payment and returns to our website.

As soon as it hits the line in the code

$result = execute_payment($_SESSION["payment_id"], $_GET["PayerID"]);

Error failed: "The PayPal \ Api \ Sale :: getTransactionFee () method does not exist"

I spoke with Paypal many times, and they keep saying that they will call me back without returning phone calls. I was looking hard for this error and cannot find anything on this topic. I am at a loss what to try next, and this causes a lot of failures, because we process a large number of transactions. I switched the site to the development domain and tried Sandbox mode and I still get the same error message.

Any help at all would be appreciated.

+4
source share
2

, , . .

, SDK PayPal PHP, !?!?

Help!

- UPDATE: PHP SDK: " :" PayPal\Api\Sale:: getTransactionFee() " paypal/vendor/paypal/rest-api-sdk-php/lib/PayPal/Common/PPReflectionUtil.php:73, SDK v1.2.1."

. https://github.com/paypal/PayPal-PHP-SDK/wiki

SDK . , ...

- . , 1.2.1 PHP SDK, . , /SDK , ?

+6

Paypal. -, . .

+1

All Articles