View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0007588 | module PayPal Checkout | module PayPal checkout - sub | public | 2024-01-30 12:30 | 2024-04-08 22:20 |
Reporter | mount7 | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 2.3.1 / 1.3.1 | ||||
Fixed in Version | 2.4.0 / 3.4.0 | ||||
Summary | 0007588: Capture Order Request have no/bad error handling | ||||
Description | All error issues for capture order (https://developer.paypal.com/api/rest/reference/orders/v2/errors/#capture-order) will redirect to thankyou page. E.g. Payment declined by bank an user sees the thankyou page (including e-mails) instead of redirect to payment page. | ||||
Steps To Reproduce | Module Version: v2.3.4 1. Open vendor/oxid-solution-catalysts/paypal-client/generated/Service/Payments.php 2. Add additional header to post request in capturePaymentForOrder function: $headers['PayPal-Mock-Response'] = '{"mock_application_codes": "..."}'; (replace dots with ISSUE CODE from https://developer.paypal.com/api/rest/reference/orders/v2/errors/#capture-order e.g.: INSTRUMENT_DECLINED) 3. Pay an order with paypal | ||||
Additional Information | Possible fix: (screenshots) Do not ignore the success value from doExecutePayPalPayment | ||||
Tags | No tags attached. | ||||
Attached Files | |||||