Jump to content

Always something went wrong using Prestashop Checkout or Paypal Official Module


Recommended Posts

I installed the PrestaShop Checkout module and the Official PayPal module in my PrestaShop 8.1.7 and linked my PayPal (business) account. However, why every time I try to test a payment with my another Paypal (personal) account, both modules always gave me the same error "Sorry, something went wrong. Please try again." ? Which always redirect to this link : https://www.paypal.com/checkoutweb/genericError?code=REVGQVVMVA%3D%3D&cancelLink=&merchantName=

Someone suggested clearing the cache and cookies, which I did, but it still didn't work, even when I tried it in a different browser and even I tried to make another personal Paypal account, but still same. Then I tried twice with my credit cards, first with my Visa card and then with my Mastercard, but both attempts gave me the message: "Something went wrong. We'll take you back to checkout so you can try again".  And I received notifications on my phone from my credit card issuers stating that the transactions failed.

Screenshot2024-08-15014044.jpg.6aee328c5a72d98dac1cf1a0118a3bb2.jpg

 

I have tried disconnecting my PayPal business account from my PrestaShop and connecting my PayPal personal account instead, but I still got the same error messages. So, what’s causing the error messages that prevent me from trying make payments? Is there something that needs to be configured on my PayPal account? I truly appreciate for your help, thank you.

 

additional notes:

I use Prestashop 8.1.7 that running on PHP 8.2 with Prestashop Checkout module 8.4.0.1 and Official Paypal module 6.4.2

I saw in error_logs there repeated error like these
 

[16-Aug-2024 02:13:38 Asia/Jakarta] PHP Warning:  Undefined array key "value" in /modules/ps_checkout/src/Webhook/WebhookEventConfigurationUpdatedHandler.php on line 64
[16-Aug-2024 10:55:11 Asia/Jakarta] PHP Warning:  Trying to access array offset on value of type null in /modules/ps_checkout/src/PayPal/Order/CommandHandler/UpdatePayPalOrderCommandHandler.php on line 96
[16-Aug-2024 10:55:13 Asia/Jakarta] PHP Warning:  Undefined array key "payment_source" in /ps_checkout/src/PayPal/Order/CommandHandler/SavePayPalOrderCommandHandler.php on line 64

 

Edited by Creativebrain
add error_log (see edit history)
Link to comment
Share on other sites

20 hours ago, PrestaHeroes USA said:

I have not nor do I currently recommend using the PrestaShop checkout module.  It has been a disaster.  

Actually I have found a solution to my problem above, because a problem in the customer form address. But what you said maybe true, apart from the confusing UX, there is a hidden configuration.

Yesterday, I encountered another issue. Suddenly, the PayPal button didn’t appear. When I checked the back office dashboard, it said, "The configuration is not set. You have an issue with your configuration, try onboarding again or contact our support." Which turned out to PrestaShop technical support had to step in and access my website back office to resolve it.

What made me even more curious was that after reviewing the PrestaShop Checkout module codes, I discovered that the API credentials for my PayPal Client ID aren’t stored on my server or database. It seems they store it on their server and then alternate it with their own PayPal Client ID (as seen in the .env file, it mentioned that PAYPAL_CLIENT_ID_LIVE="AXjYFXWyb4xJCErTUDiFkzL0Ulnn-bMm4fal4G-1nQXQ1ZQxp06fOuE7naKUXGkq2TZpYSiI9xXbs4eo") that's why they require to login with our Prestashop account to connect it. But for the Official PayPal module, I see that my PayPal Client ID is stored directly in my own database.

Link to comment
Share on other sites

  • 2 weeks later...
On 8/20/2024 at 8:42 AM, Creativebrain said:

Actually I have found a solution to my problem above, because a problem in the customer form address. But what you said maybe true, apart from the confusing UX, there is a hidden configuration.

Yesterday, I encountered another issue. Suddenly, the PayPal button didn’t appear. When I checked the back office dashboard, it said, "The configuration is not set. You have an issue with your configuration, try onboarding again or contact our support." Which turned out to PrestaShop technical support had to step in and access my website back office to resolve it.

What made me even more curious was that after reviewing the PrestaShop Checkout module codes, I discovered that the API credentials for my PayPal Client ID aren’t stored on my server or database. It seems they store it on their server and then alternate it with their own PayPal Client ID (as seen in the .env file, it mentioned that PAYPAL_CLIENT_ID_LIVE="AXjYFXWyb4xJCErTUDiFkzL0Ulnn-bMm4fal4G-1nQXQ1ZQxp06fOuE7naKUXGkq2TZpYSiI9xXbs4eo") that's why they require to login with our Prestashop account to connect it. But for the Official PayPal module, I see that my PayPal Client ID is stored directly in my own database.

did you remove ps checkout and load standaline payment methods....

you found one solution, but how many issues have you not found....that is scary part of ps  checkout...loool

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...