Page 1 of 1

PayPal Checkout Integration Issues

Posted: Fri May 05, 2023 4:04 am
by redwingsfan71
Hello all,

I've got an odd issue dealing with the Paypal Checkout Integration.

1. Everything is healthy and running fine throughout the whole website, except the following...
2. Add items to an order... Go into checkout... After clicking confirm, clicking on the PayPal button and logging into PayPal in their popup window everything is fine there as well, so far so good...
3. After confirming the order in the popup window, the usual spinning wheel appears and continues to spin endlessly.
4. The order does go through, and shows in my paypal account. I receive the usual PayPal notifications in my PayPal app on my phone, etc.... Everything is healthy there...
5. The spinning wheel in the PayPal window continues going and going, and the process never gets to the order success page.
6. Emails continuously flow into my inbox regarding the order... Really strange... And they go into "missing orders" instead of just "orders" per the usual process....
7. And in my PayPal error logs it shows a fail_soft error.

Any thoughts?
I'm using OC 3.0.3.8
PPErrorLog.PNG

PPErrorLog.PNG (105.08 KiB) Viewed 3543 times

PPPopupErrors.PNG

PPPopupErrors.PNG (77.86 KiB) Viewed 3543 times

pp_Webhooks.PNG

pp_Webhooks.PNG (64.82 KiB) Viewed 3543 times


Re: PayPal Checkout Integration Issues

Posted: Fri May 05, 2023 4:57 am
by straightlight
Contact the extension developer to resolve this issue.

Re: PayPal Checkout Integration Issues

Posted: Fri May 05, 2023 5:49 am
by ADD Creative
Are you using the latest version of the extension from the marketplace?

Re: PayPal Checkout Integration Issues

Posted: Sun May 07, 2023 2:00 am
by redwingsfan71
Ok, I've got these issues sorted out... Johnathan was a huge help, very detailed and timely email responses from him.

But, now I'm running into issues with figuring out the order statuses... There are options in the payment module, and there are options in system->settings->option tab...

I'm very confused on what needs to be set for the different stages of an order passing through the framework.

Thoughts?

Re: PayPal Checkout Integration Issues

Posted: Sun May 07, 2023 10:11 pm
by Johnathan
Glad I could be of help!

For the order statuses, the ones in System > Settings > Option tab are for system-related things. When an order reaches one of the Processing or Complete statuses, then product stock will be subtracted, reward points will be added/subtracted to the account, vouchers will be sent out, commissions will be recorded for affiliates, and coupons will be marked as used (and recorded into the "coupon_history" table). Additionally, downloads for digital products will become available when the order reaches one of the Complete statuses (but not one of the Processing statuses). There might be a few other things tied into those order statuses, but those are the main ones.

The order statuses in the payment extension are what is assigned to the order when the payment is completed in that extension. Each payment method can have its own order status, so for example you could set Cash On Delivery to initially set the order to "Pending", while a credit card payment could set the order to "Processing". You can use those however you want --- there's no right method, since it will depend on your own order flow. Just keep in mind that once the order reaches one of the Processing or Complete statuses, all the above things will happen.

In general, I would say most stores use some initial status ("Pending" or "Processing") to move the order into one of the Processing statuses. Then, if you have physical goods, they update the order to use a status like "Shipped", and sometimes send the customer the tracking information in the order history update note. Then, when the order arrives or is otherwise fully completed, then use something like Complete. It's a flexible system, though, so you can make it work for how you want your store to function. The only real choice is to determine when an order moves from a non-Processing/Complete status to a Processing/Complete status.

Hope that helps explain things

Re: PayPal Checkout Integration Issues

Posted: Fri Dec 20, 2024 6:25 am
by damonpence
I am having what appears to be the same exact issue. I have been running great since August and now on Dec 16 everything just started marking all orders as cancelled in OC and I can only find them using the missing orders filter. The payments are processing and paypal is collection money but during the paypal payment window it just spins forever. When I try to change an order's status from Cancelled to Processing i get a popup "Internal Server Error" "Internal Server Error". I did update the Webhook URL today hoping that was the issue but nothing changed.

@Jonathan - Is it possible that you can post the Fix that resolved the issue?

running OC 3.0.3.2, tried to update to 3.0.4.0 but that caused a slue of other issues.
PayPal Checkout Integration -- updated to Dec 15, 2024 ver hoping it would fix issue with no change to issue

my OC:
no changes made since August when added Paypal Checkout Integration and moved from Paypal Standard
on Dec 15, had 2 orders come in with no problems and I had to refund one which I did thought OC, it refunded in PayPal but that was the last transaction that OC completed correctly.

Re: PayPal Checkout Integration Issues

Posted: Fri Dec 20, 2024 5:23 pm
by ADD Creative
damonpence wrote:
Fri Dec 20, 2024 6:25 am
I am having what appears to be the same exact issue. I have been running great since August and now on Dec 16 everything just started marking all orders as cancelled in OC and I can only find them using the missing orders filter. The payments are processing and paypal is collection money but during the paypal payment window it just spins forever. When I try to change an order's status from Cancelled to Processing i get a popup "Internal Server Error" "Internal Server Error". I did update the Webhook URL today hoping that was the issue but nothing changed.

@Jonathan - Is it possible that you can post the Fix that resolved the issue?

running OC 3.0.3.2, tried to update to 3.0.4.0 but that caused a slue of other issues.
PayPal Checkout Integration -- updated to Dec 15, 2024 ver hoping it would fix issue with no change to issue

my OC:
no changes made since August when added Paypal Checkout Integration and moved from Paypal Standard
on Dec 15, had 2 orders come in with no problems and I had to refund one which I did thought OC, it refunded in PayPal but that was the last transaction that OC completed correctly.
If you get Internal Server Error you should check both the OpenCart and PHP error logs. Ask you host or use phpinfo() if you don't where to find the PHP error log.