Closed xthomas6428 closed 3 years ago
I don't know why that would happen I'm afraid.
You can create the file manually by copying modules/Resources/paypal_default.php
and renaming the copy to modules/Resources/paypal.php
- then replace {client_id}
and {client_secret}
near the top of the file accordingly.
Note, the file modules/Resources/paypal_default.php
needs to stay, so make sure you copy + rename instead of simply renaming the original.
Okay, I followed what I said but I always have a mistake when I order a resource
So?
Can you remove {
and }
from around your client ID and secret?
No there is always the error
Can you please edit the file modules/Resources/pages/resources/purchase.php
in a text editor, delete all code inside and replace with this new code: https://gist.githubusercontent.com/samerton/f92247e925e0a52a71d1d1cdfc4c6f6c/raw/37f3eb495a6d8261698ab2f9550b15219c1e90f9/purchase.php
Then, when you try purchasing a resource, the full error message should appear on screen.
The Error is :
{"error":"invalid_client","error_description":"Client Authentication failed"}1
The client ID and secret are incorrect.
Can you ensure you are using a real client ID and secret, and not the sandbox credentials
I put his :
As you can see, they are the sandbox API credentials, which will not work on the live PayPal API environment.
Try to find the area where you can generate credentials for the live API, not the sandbox API.
That's it ?
Yes, that looks correct
Ok thanks i will try
Okay ! It works, thank you!
No problem - you can revert the contents of the file modules/Resources/pages/resources/purchase.php
back to its original code now
Yes ^^
Hello, is it normal that
modules/Resources/paypal.php
will delete everything that has in it after having put the Paypal Client ID and the Paypal Client Secret?