View Issue Details

IDProjectCategoryView StatusLast Update
0007652module Amazon Paymainpublic2024-08-16 08:56
Reporterdspeckhardt Assigned To 
PriorityhighSeveritymajorReproducibilityunable to reproduce
Status resolvedResolutionopen 
Product Version2.1.5 
Fixed in Version2.1.6 
Summary0007652: When config isOneStepCapture and Authorization&Capture is not done, it is still possible to finish the order
DescriptionModul setting is isOneStepCapture, so it should not be possible to place the order when the Authorization & Capture was not performed between OrderController and ThankYouController.
Steps To ReproduceIt is not reproducible without deeper mocking and manipulating the sourcecode i guess, because the Authorization and Capturing happens synchronously between OrderController and ThankYouController.

But i can describe what probably happens:
- logging in to amazon during express checkout
- landing back in oxid
- go to last checkout step (OrderController)
- press the "buy" button
- the amazon popup opens again to Authorize the payment and directly also perform the Capture
... the expected entry in the amazonpaylog table in column OSC_AMAZON_RESPONSE_MSG should be "Completed & Captured", but there is no log entry at all
- anyways the order gets completed and the order confirmation email gets send to the customer
- the oxid order lands in the oxfolder "ORDERFOLDER_PROBLEMS" and the oxtransstatus is "NOT_FINISHED"
- in the oxid backend on the order it displays "Amazon-Zahlung bei Lieferung erfolgt" which means that the oder is treated as a amazon pay module is configured like "isTwoStepCapture"
Additional InformationWe observed this behaviour more for Express Payments, but now also for the normal AmazonPay (not express).
TagsAmazon Pay
Attached Files

Relationships

related to 0007654 resolved[email protected] Caputre type is incorrectly evaluated 
related to 0007702 resolved[email protected] When config two-Step capture is done, oxorder->oxtransstatus is set to NOT_FINISHED 

Activities

dspeckhardt

2024-05-23 14:21

reporter   ~0016909

maybe related to this fix: https://bugs.oxid-esales.com/view.php?id=7557

I would expect to be redirected back to the OrderController with a message "Unable to complete payment with amazon pay, please try again" or end the Amazon Pay session or something.

Most likely the amazon api didn't answer in time during this synchonous authorize&capture process.