Skip to content

Support Alipay payment#48

Merged
guzzilar merged 1 commit intodevelopfrom
alipay
Jul 11, 2017
Merged

Support Alipay payment#48
guzzilar merged 1 commit intodevelopfrom
alipay

Conversation

@guzzilar
Copy link
Copy Markdown
Contributor

@guzzilar guzzilar commented Jul 11, 2017

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=xx
2.3. New setting tab at admin, WooCommerce Checkout page.
2.4. New payment method at the checkout page (Alipay).

3. Quality assurance

  • Platform version: WooCommerce v3.1.1
  • PHP version: 5.6.30

✏️ Details:

3.1. Once you install the plugin and enable it. You must see this setting in the WooCommerce > Setting > Checkout page.

screen shot 2560-07-12 at 3 07 26 am

3.2. After you enable the payment method. Now the Alipay payment method will be appeared in the checkout page.

screen shot 2560-07-12 at 3 08 26 am

3.3. Test checkout with internet banking payment method and mark a payment as failure

screen shot 2560-07-12 at 3 09 44 am

You will be redirected back to the checkout page with an error message on a screen

screen shot 2560-07-12 at 3 09 53 am

Your order will be marked as failed with a proper order's note on a screen.

screen shot 2560-07-12 at 3 10 46 am

Omise Dashboard, charge detail page.

screen shot 2560-07-12 at 3 12 17 am

3.4. Test checkout with Alipay payment method and mark a payment as success.

screen shot 2560-07-12 at 3 19 04 am

You will be redirected back to the order-received page.

screen shot 2560-07-12 at 3 19 16 am

Your order will be marked as processing with a proper order's note on a screen.

screen shot 2560-07-12 at 3 19 32 am

Omise Dashboard, charge detail page.

screen shot 2560-07-12 at 3 19 50 am

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.

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).
@guzzilar
Copy link
Copy Markdown
Contributor Author

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant