Redirect buyer out to the internet banking page if the placeOrder action is succeeded #66
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 handle the placeOrder action, either redirect buyer out to the internet banking page (if the action is succeeded) or raise an error message onto the screen (if the action is failed).
Related information:
Related issue(s): 🙅
2. Description of change
• Implement RESTFul API
GET orders/:order_id/omise-offset
• Update JS model to make a redirection and handle either success/fail case.
• Save
omise.charge.id
,omise.charge.authorize_uri
to an order record after payment process is done.3. Quality assurance
🔧 Environments:
✏️ Details:
✅ Once buyer place an order with internet banking payment, buyer will be redirected to the internet banking page.
place order
).✅ Test access an API directly, user would be rejected. (because user's session is not match with the user's cart).

✅ In case something wrong with a new API, an error message will be raised as the below screenshot.

4. Impact of the change
Now buyer will be redirected out to the internet banking page after place an order.
5. Priority of change
Normal.
6. Additional Notes
404 page not found
error.