View Issue Details

IDProjectCategoryView StatusLast Update
0007356module PayPal Checkoutmodule PayPal checkout - subpublic2022-09-27 10:39
ReporterEW 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionunable to reproduce 
Product Version 
Target VersionFixed in Version 
Summary0007356: Paypal throws Internal Exception when creating order
DescriptionPlugin version 1.1.6
Oxid v6.1.6

When trying to purchase anything having the Paypal payment method selected Paypal will return an error making us unable to complete the purchase.
For error in log please see the attached file.
Steps To Reproduceinstall plugin
setup sandbox account (we tried multiple, including one provided by Paypal)
enable payment method
try to purchase anything
TagsNo tags attached.

Activities

EW

2022-09-16 10:25

reporter  

paypalerror.txt (13,116 bytes)
[2022-08-16 15:36:01] OXID Logger.ERROR: Error on order create call. ["[object] (OxidSolutionCatalysts\\PayPalApi\\Exception\\ApiException(code: 500): POST https://api.sandbox.paypal.com/v2/checkout/orders returned: 500 Internal Server Error
Returned Message: An internal service error has occurred
Error Details: 
[]

Response: 
{\"name\":\"INTERNAL_SERVICE_ERROR\",\"debug_id\":\"9912e489a19de\",\"links\":[]}

The following curl request could be used to simulate a similar request:
        
curl -v -X POST \"https://api.sandbox.paypal.com/v2/checkout/orders\" -H \"User-Agent: GuzzleHttp/7\" -H \"Host: api.sandbox.paypal.com\" -H \"Content-Type: application/json\" -H \"PayPal-Partner-Attribution-Id: Oxid_Cart_Payments\" -H \"PayPal-Client-Metadata-Id: \" -H \"Prefer: return=minimal\" -H \"Authorization: Bearer REMOVEDBEARER\" -d {\"intent\":\"CAPTURE\",\"processing_instruction\":\"NO_INSTRUCTION\",\"payer\":{\"name\":{\"given_name\":\"Simon\",\"surname\":\"SNIPPED\"},\"phone\":{\"phone_type\":\"FAX\",\"phone_number\":{\"national_number\":\"SNIPPED\"}},\"address\":{\"address_line_1\":\"Schuegrafstr. 3\",\"admin_area_2\":\"Cham\",\"postal_code\":\"93413\",\"country_code\":\"DE\"},\"email_address\":\"[email protected]\"},\"purchase_units\":[{\"reference_id\":\"OXID_REFERENCE\",\"amount\":{\"breakdown\":{\"item_total\":{\"currency_code\":\"EUR\",\"value\":\"489.00\"},\"tax_total\":{\"currency_code\":\"EUR\",\"value\":\"0.00\"}},\"currency_code\":\"EUR\",\"value\":\"489.00\"},\"description\":\"Zahlung bei naehpark.com\",\"shipping\":{\"name\":{\"full_name\":\"Simon SNIPPED\"},\"address\":{\"address_line_1\":\"Schuegrafstr. 3\",\"admin_area_2\":\"Cham\",\"postal_code\":\"93413\",\"country_code\":\"DE\"}}}],\"application_context\":{\"brand_name\":\"naehpark.com\",\"landing_page\":\"LOGIN\",\"shipping_preference\":\"GET_FROM_FILE\",\"user_action\":\"CONTINUE\",\"return_url\":\"https:\\/\\/naehpark.local\\/index.php?cl=order&fnc=finalizepaypalsession\",\"cancel_url\":\"https:\\/\\/naehpark.local\\/index.php?cl=order&fnc=cancelpaypalsession\",\"vault\":false}} at /dev/naehpark-oxid/vendor/oxid-solution-catalysts/paypal-client/src/Service/BaseService.php:45)
[stacktrace]
#0 /dev/naehpark-oxid/vendor/oxid-solution-catalysts/paypal-client/generated/Service/Orders.php(55): OxidSolutionCatalysts\\PayPalApi\\Service\\BaseService->send('POST', '/orders', Array, Array, '{\"intent\":\"CAPT...')
#1 /dev/naehpark-oxid/vendor/oxid-solution-catalysts/paypal-module/src/Service/Payment.php(114): OxidSolutionCatalysts\\PayPalApi\\Service\\Orders->createOrder(Object(OxidSolutionCatalysts\\PayPalApi\\Model\\Orders\\OrderRequest), 'Oxid_Cart_Payme...', '', 'return=minimal', '')
#2 /dev/naehpark-oxid/vendor/oxid-solution-catalysts/paypal-module/src/Service/Payment.php(397): OxidSolutionCatalysts\\PayPal\\Service\\Payment->doCreatePayPalOrder(Object(OxidProfessionalServices\\AmazonPay\\Model\\Basket), 'CAPTURE', NULL, NULL, NULL, '', '', 'Oxid_Cart_Payme...', 'https://naehpar...', 'https://naehpar...', false)
#3 /dev/naehpark-oxid/vendor/oxid-solution-catalysts/paypal-module/src/Model/Order.php(228): OxidSolutionCatalysts\\PayPal\\Service\\Payment->doExecuteStandardPayment(Object(computopcw_oxorder), Object(OxidProfessionalServices\\AmazonPay\\Model\\Basket), 'CAPTURE')
#4 /dev/naehpark-oxid/vendor/oxid-esales/oxideshop-ce/source/Application/Model/Order.php(519): OxidSolutionCatalysts\\PayPal\\Model\\Order->_executePayment(Object(OxidProfessionalServices\\AmazonPay\\Model\\Basket), Object(computopcw_oxuserpayment))
#5 /dev/naehpark-oxid/source/modules/sbw/np/Model/Order.php(39): OxidEsales\\EshopCommunity\\Application\\Model\\Order->finalizeOrder(Object(OxidProfessionalServices\\AmazonPay\\Model\\Basket), Object(OxidProfessionalServices\\AmazonPay\\Model\\User), false)
#6 /dev/naehpark-oxid/source/modules/bestit/amazonpay4oxid/ext/bestitamazonpay4oxid_oxorder.php(469): Sbw\
p\\Model\\Order->finalizeOrder(Object(OxidProfessionalServices\\AmazonPay\\Model\\Basket), Object(OxidProfessionalServices\\AmazonPay\\Model\\User), false)
#7 /dev/naehpark-oxid/source/modules/bestit/amazonpay4oxid/ext/bestitamazonpay4oxid_oxorder.php(490): bestitAmazonPay4Oxid_oxOrder->_parentFinalizeOrder(Object(OxidProfessionalServices\\AmazonPay\\Model\\Basket), Object(OxidProfessionalServices\\AmazonPay\\Model\\User), false)
#8 /dev/naehpark-oxid/source/modules/sbw/np_ustidcheck/Model/Order.php(16): bestitAmazonPay4Oxid_oxOrder->finalizeOrder(Object(OxidProfessionalServices\\AmazonPay\\Model\\Basket), Object(OxidProfessionalServices\\AmazonPay\\Model\\User), false)
#9 /dev/naehpark-oxid/source/modules/naehpark/np_callcenterorderreceiver/Model/Order.php(23): Sbw\\UstidCheck\\Model\\Order->finalizeOrder(Object(OxidProfessionalServices\\AmazonPay\\Model\\Basket), Object(OxidProfessionalServices\\AmazonPay\\Model\\User), false)
#10 /dev/naehpark-oxid/vendor/naehpark/trosofortueberweisung/Application/Model/TrosofortueberweisungOrder.php(146): Naehpark\\Module\\Erfolgswerkzeug\\CallcenterOrderReceiver\\Model\\Order->finalizeOrder(Object(OxidProfessionalServices\\AmazonPay\\Model\\Basket), Object(OxidProfessionalServices\\AmazonPay\\Model\\User), false)
#11 /dev/naehpark-oxid/source/modules/sbw/orderbak/Model/Order.php(21): Tronet\\Trosofortueberweisung\\Application\\Model\\TrosofortueberweisungOrder->finalizeOrder(Object(OxidProfessionalServices\\AmazonPay\\Model\\Basket), Object(OxidProfessionalServices\\AmazonPay\\Model\\User), false)
#12 /dev/naehpark-oxid/vendor/oxid-esales/amazon-pay-module/Model/Order.php(60): Sbw\\Orderbak\\Model\\Order->finalizeOrder(Object(OxidProfessionalServices\\AmazonPay\\Model\\Basket), Object(OxidProfessionalServices\\AmazonPay\\Model\\User), false)
#13 /dev/naehpark-oxid/source/modules/customweb/computopcw/models/core/computopcw_oxorder.php(75): OxidProfessionalServices\\AmazonPay\\Model\\Order->finalizeOrder(Object(OxidProfessionalServices\\AmazonPay\\Model\\Basket), Object(OxidProfessionalServices\\AmazonPay\\Model\\User), false)
#14 /dev/naehpark-oxid/vendor/oxid-esales/oxideshop-ce/source/Application/Controller/OrderController.php(217): computopcw_oxorder->finalizeOrder(Object(OxidProfessionalServices\\AmazonPay\\Model\\Basket), Object(OxidProfessionalServices\\AmazonPay\\Model\\User))
#15 /dev/naehpark-oxid/source/modules/sbw/np/Controller/OrderController.php(66): OxidEsales\\EshopCommunity\\Application\\Controller\\OrderController->execute()
#16 /dev/naehpark-oxid/source/modules/sbw/orderbak/Controller/OrderController.php(215): Sbw\
p\\Controller\\OrderController->execute()
#17 /dev/naehpark-oxid/vendor/oxid-esales/amazon-pay-module/Controller/OrderController.php(96): Sbw\\Orderbak\\Controller\\OrderController->execute()
#18 /dev/naehpark-oxid/source/modules/customweb/computopcw/controllers/core/computopcw_order.php(209): OxidProfessionalServices\\AmazonPay\\Controller\\OrderController->execute()
#19 /dev/naehpark-oxid/vendor/oxid-esales/oxideshop-ce/source/Core/Controller/BaseController.php(524): computopcw_order->execute()
#20 /dev/naehpark-oxid/vendor/oxid-esales/oxideshop-ce/source/Core/ShopControl.php(332): OxidEsales\\EshopCommunity\\Core\\Controller\\BaseController->executeFunction('execute')
#21 /dev/naehpark-oxid/vendor/oxid-esales/oxideshop-ce/source/Core/ShopControl.php(274): OxidEsales\\EshopCommunity\\Core\\ShopControl->executeAction(Object(computopcw_order), 'execute')
#22 /dev/naehpark-oxid/vendor/oxid-esales/oxideshop-ce/source/Core/ShopControl.php(137): OxidEsales\\EshopCommunity\\Core\\ShopControl->_process('OxidEsales\\\\Esho...', 'execute', NULL, NULL)
#23 /dev/naehpark-oxid/vendor/oxid-esales/oxideshop-ce/source/Core/Oxid.php(26): OxidEsales\\EshopCommunity\\Core\\ShopControl->start()
#24 /dev/naehpark-oxid/source/index.php(15): OxidEsales\\EshopCommunity\\Core\\Oxid::run()
#25 {main}
"] []
[2022-08-16 15:36:01] OXID Logger.ERROR: Could not create PayPal order. ["[object] (OxidSolutionCatalysts\\PayPal\\Exception\\PayPalException(code: 0): Could not create PayPal order. at /dev/naehpark-oxid/vendor/oxid-solution-catalysts/paypal-module/src/Exception/PayPalException.php:16)
[stacktrace]
#0 /dev/naehpark-oxid/vendor/oxid-solution-catalysts/paypal-module/src/Service/Payment.php(403): OxidSolutionCatalysts\\PayPal\\Exception\\PayPalException::createPayPalOrderFail()
#1 /dev/naehpark-oxid/vendor/oxid-solution-catalysts/paypal-module/src/Model/Order.php(228): OxidSolutionCatalysts\\PayPal\\Service\\Payment->doExecuteStandardPayment(Object(computopcw_oxorder), Object(OxidProfessionalServices\\AmazonPay\\Model\\Basket), 'CAPTURE')
#2 /dev/naehpark-oxid/vendor/oxid-esales/oxideshop-ce/source/Application/Model/Order.php(519): OxidSolutionCatalysts\\PayPal\\Model\\Order->_executePayment(Object(OxidProfessionalServices\\AmazonPay\\Model\\Basket), Object(computopcw_oxuserpayment))
#3 /dev/naehpark-oxid/source/modules/sbw/np/Model/Order.php(39): OxidEsales\\EshopCommunity\\Application\\Model\\Order->finalizeOrder(Object(OxidProfessionalServices\\AmazonPay\\Model\\Basket), Object(OxidProfessionalServices\\AmazonPay\\Model\\User), false)
#4 /dev/naehpark-oxid/source/modules/bestit/amazonpay4oxid/ext/bestitamazonpay4oxid_oxorder.php(469): Sbw\
p\\Model\\Order->finalizeOrder(Object(OxidProfessionalServices\\AmazonPay\\Model\\Basket), Object(OxidProfessionalServices\\AmazonPay\\Model\\User), false)
#5 /dev/naehpark-oxid/source/modules/bestit/amazonpay4oxid/ext/bestitamazonpay4oxid_oxorder.php(490): bestitAmazonPay4Oxid_oxOrder->_parentFinalizeOrder(Object(OxidProfessionalServices\\AmazonPay\\Model\\Basket), Object(OxidProfessionalServices\\AmazonPay\\Model\\User), false)
#6 /dev/naehpark-oxid/source/modules/sbw/np_ustidcheck/Model/Order.php(16): bestitAmazonPay4Oxid_oxOrder->finalizeOrder(Object(OxidProfessionalServices\\AmazonPay\\Model\\Basket), Object(OxidProfessionalServices\\AmazonPay\\Model\\User), false)
#7 /dev/naehpark-oxid/source/modules/naehpark/np_callcenterorderreceiver/Model/Order.php(23): Sbw\\UstidCheck\\Model\\Order->finalizeOrder(Object(OxidProfessionalServices\\AmazonPay\\Model\\Basket), Object(OxidProfessionalServices\\AmazonPay\\Model\\User), false)
#8 /dev/naehpark-oxid/vendor/naehpark/trosofortueberweisung/Application/Model/TrosofortueberweisungOrder.php(146): Naehpark\\Module\\Erfolgswerkzeug\\CallcenterOrderReceiver\\Model\\Order->finalizeOrder(Object(OxidProfessionalServices\\AmazonPay\\Model\\Basket), Object(OxidProfessionalServices\\AmazonPay\\Model\\User), false)
#9 /dev/naehpark-oxid/source/modules/sbw/orderbak/Model/Order.php(21): Tronet\\Trosofortueberweisung\\Application\\Model\\TrosofortueberweisungOrder->finalizeOrder(Object(OxidProfessionalServices\\AmazonPay\\Model\\Basket), Object(OxidProfessionalServices\\AmazonPay\\Model\\User), false)
#10 /dev/naehpark-oxid/vendor/oxid-esales/amazon-pay-module/Model/Order.php(60): Sbw\\Orderbak\\Model\\Order->finalizeOrder(Object(OxidProfessionalServices\\AmazonPay\\Model\\Basket), Object(OxidProfessionalServices\\AmazonPay\\Model\\User), false)
#11 /dev/naehpark-oxid/source/modules/customweb/computopcw/models/core/computopcw_oxorder.php(75): OxidProfessionalServices\\AmazonPay\\Model\\Order->finalizeOrder(Object(OxidProfessionalServices\\AmazonPay\\Model\\Basket), Object(OxidProfessionalServices\\AmazonPay\\Model\\User), false)
#12 /dev/naehpark-oxid/vendor/oxid-esales/oxideshop-ce/source/Application/Controller/OrderController.php(217): computopcw_oxorder->finalizeOrder(Object(OxidProfessionalServices\\AmazonPay\\Model\\Basket), Object(OxidProfessionalServices\\AmazonPay\\Model\\User))
#13 /dev/naehpark-oxid/source/modules/sbw/np/Controller/OrderController.php(66): OxidEsales\\EshopCommunity\\Application\\Controller\\OrderController->execute()
#14 /dev/naehpark-oxid/source/modules/sbw/orderbak/Controller/OrderController.php(215): Sbw\
p\\Controller\\OrderController->execute()
#15 /dev/naehpark-oxid/vendor/oxid-esales/amazon-pay-module/Controller/OrderController.php(96): Sbw\\Orderbak\\Controller\\OrderController->execute()
#16 /dev/naehpark-oxid/source/modules/customweb/computopcw/controllers/core/computopcw_order.php(209): OxidProfessionalServices\\AmazonPay\\Controller\\OrderController->execute()
#17 /dev/naehpark-oxid/vendor/oxid-esales/oxideshop-ce/source/Core/Controller/BaseController.php(524): computopcw_order->execute()
#18 /dev/naehpark-oxid/vendor/oxid-esales/oxideshop-ce/source/Core/ShopControl.php(332): OxidEsales\\EshopCommunity\\Core\\Controller\\BaseController->executeFunction('execute')
#19 /dev/naehpark-oxid/vendor/oxid-esales/oxideshop-ce/source/Core/ShopControl.php(274): OxidEsales\\EshopCommunity\\Core\\ShopControl->executeAction(Object(computopcw_order), 'execute')
#20 /dev/naehpark-oxid/vendor/oxid-esales/oxideshop-ce/source/Core/ShopControl.php(137): OxidEsales\\EshopCommunity\\Core\\ShopControl->_process('OxidEsales\\\\Esho...', 'execute', NULL, NULL)
#21 /dev/naehpark-oxid/vendor/oxid-esales/oxideshop-ce/source/Core/Oxid.php(26): OxidEsales\\EshopCommunity\\Core\\ShopControl->start()
#22 /dev/naehpark-oxid/source/index.php(15): OxidEsales\\EshopCommunity\\Core\\Oxid::run()
#23 {main}
"] []
paypalerror.txt (13,116 bytes)

QA

2022-09-16 16:08

administrator   ~0014308

Last edited: 2022-09-20 11:00

View 2 revisions

PayPal had sandbox and onboarding issues this week. The problems seem to be solved.

This is also said by the message:
POST https://api.sandbox.paypal.com/v2/checkout/orders returned: 500 Internal Server Error
Returned Message: An internal service error has occurred

So no problem with the OXID PayPal Checkout module.
Therefore the bug will be closed.

- es -

EW

2022-09-16 16:11

reporter   ~0014309

Last edited: 2022-09-16 16:17

View 2 revisions

Please check the date of the attached log..
Also note we were asked to open this issue here after weeks of back and forth with our OXID contact Mario Lorenz.

QA

2022-09-20 11:03

administrator   ~0014315

Was the PayPal onboarding successfully completed or were the credentials manually stored in the PayPal Checkout settings?

EW

2022-09-20 11:04

reporter   ~0014316

The onboarding was successfully completed.

QA

2022-09-27 10:38

administrator   ~0014334

will be processed in Ticket #110017