Validate a 3-D Secure payment result at the callback uri #78
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
1. Objective
To validate a 3-D Secure payment result and update an order status, invoice and transaction.
Related information:
Related issue(s): 🙅
2. Description of change
• New callback uri,
omise/callback/threedsecure
• Add new controller to handle the validation process on the callback uri.
• Introduce new validation structure and enhance the process between validate & raise an error
3. Quality assurance
🔧 Environments:
✏️ Details:
✅ Test access to the callback uri directly, user will be redirected to the

checkout/cart
page and an error will be raised.✅ Test validate a charge result with
Order.status != pending payment
, user will be redirected to thecheckout/cart
page and an error will be raised.✅ If payment method !=
omise
oromise_cc
, user will be redirected to thecheckout/cart
page and an error will be raised.✅ If cannot retrieve a charge id from a target order, user will be redirected to the
checkout/cart
page and an error will be raised.canceled
.cancel order
.✅ Test validate a charge response with
payment action = authorize
. It should works properly.processing
✅ Test validate a charge response with
payment action = authorize_capture
. It should works properly.processing
paid
omise.transaction.id
will be attached to the transaction record.closed
✅ Test charge with a failed card test, both
authorize
andauthorize_capture
will redirect user to thecheckout/cart
page and raise an error on a screen.canceled
.cancel order
.4. Impact of the change
No
5. Priority of change
Normal
6. Additional Notes
No