I added the Paypal integration and connected it to my Paypal account. I can see in the extension that it is configured with a valid Merchant ID, Client ID, Secret, Webhook ID, and Environment is set to "production". I also have Debug Logging set to "On".
When I look at a product and click "Buy it now" the Paypal window pops up and I can see that the details have passed to Paypal correctly.
When I complete the transaction at Paypal, the popup windows exits ok, and I see the "Confirm Order" screen. When I click the "Confirm" button opencart throws a 500 error. I get an invoice from Paypal that the transaction was completed correctly and my payment is processed.
According to my access_log, the last page accessed before the error is: paypal.completeOrder
The purchase does not show up in my purchase history on opencart.
I see the following in error.log:
PHP Warning: Trying to access array offset on value of type null in .../catalog/controller/mail/order.php on line 151
In the paypal.log file I can see the "Create Order", "Capture Order", and "Webhook". Also, when I refund the order from Paypal's dash I can see the webhook hit for that as well.
When I look at a product and click "Buy it now" the Paypal window pops up and I can see that the details have passed to Paypal correctly.
When I complete the transaction at Paypal, the popup windows exits ok, and I see the "Confirm Order" screen. When I click the "Confirm" button opencart throws a 500 error. I get an invoice from Paypal that the transaction was completed correctly and my payment is processed.
According to my access_log, the last page accessed before the error is: paypal.completeOrder
The purchase does not show up in my purchase history on opencart.
I see the following in error.log:
PHP Warning: Trying to access array offset on value of type null in .../catalog/controller/mail/order.php on line 151
In the paypal.log file I can see the "Create Order", "Capture Order", and "Webhook". Also, when I refund the order from Paypal's dash I can see the webhook hit for that as well.
Last edited by scubanarc on Fri Jul 05, 2024 11:14 pm, edited 1 time in total.
What's the OpenCart version you are using?
Anyway, it's probably because of this issue: https://github.com/opencart/opencart/issues/12695. The fix can be found in commit referenced in the GitHub issue.
Anyway, it's probably because of this issue: https://github.com/opencart/opencart/issues/12695. The fix can be found in commit referenced in the GitHub issue.
Last edited by softmonke on Wed Aug 07, 2024 5:45 pm, edited 1 time in total.
Check out our ever-growing list of extensions for OpenCart here.
Some useful extensions for a better admin experience: Image File Manager Pro • Drag & Drop Sort Order
Reach out to us at hello@softmonke.com for your OpenCart web development needs or feedback for our extensions.
You need to check your server or PHP error logs for the error 500, not the OpenCart one.
Great! Do add [SOLVED] to the your post titlescubanarc wrote: ↑Fri Jul 05, 2024 11:15 pmThat fixed it! Thanks.softmonke wrote: ↑Fri Jul 05, 2024 4:31 pmAnyway, it's probably because of this issue: https://github.com/opencart/opencart/issues/12695. The fix can be found in commit referenced in the GitHub issue.
Check out our ever-growing list of extensions for OpenCart here.
Some useful extensions for a better admin experience: Image File Manager Pro • Drag & Drop Sort Order
Reach out to us at hello@softmonke.com for your OpenCart web development needs or feedback for our extensions.
Who is online
Users browsing this forum: No registered users and 5 guests