Conversation
Basically, just duplicate Omise_Payment_Internetbanking class and renamed stuff to 'Alipay' (thanks for guys who're working on make this Alipay API to be pretty sweet and easy to integrate with <3).
Contributor
Author
|
👍 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 add support Alipay payment.
2. Description of change
2.1. New payment method code
omise_alipay.2.2. New callback url
?wc-api=omise_alipay_callback&order_id=xx2.3. New setting tab at admin, WooCommerce Checkout page.
2.4. New payment method at the checkout page (Alipay).
3. Quality assurance
✏️ Details:
3.1. Once you install the plugin and enable it. You must see this setting in the WooCommerce > Setting > Checkout page.
3.2. After you enable the payment method. Now the Alipay payment method will be appeared in the checkout page.
3.3. Test checkout with internet banking payment method and mark a payment as
failureYou will be redirected back to the checkout page with an error message on a screen
Your order will be marked as
failedwith a proper order's note on a screen.Omise Dashboard, charge detail page.
3.4. Test checkout with Alipay payment method and mark a payment as
success.You will be redirected back to the
order-receivedpage.Your order will be marked as
processingwith a proper order's note on a screen.Omise Dashboard, charge detail page.
4. Impact of the change
No.
5. Priority of change
Normal
6. Additional Notes
Alipay is only available for merchants with a Thai-registered Omise account. We’ll be adding support for other countries soon.
For users with a live account, please send an email to support@omise.co You’ll need to review Terms & Conditions before testing the API.