Saleor: How to integrate the alipay and wechat payment in saleor?

Created on 26 Mar 2019  路  7Comments  路  Source: mirumee/saleor

I am planned to develop a e-commerce solutions in China using saleor. But cannot find a solution to integrate the most common-used payment alipay and wechat.

I also read the saleor payment docs (https://docs.getsaleor.com/en/latest/architecture/payments.html). But cannot find the easy way to integrate.

I also find the wechat docs(https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=11_1) in Chinese. They provide a SDK. But how to integrate the SDK in saleor?

payments stale support

Most helpful comment

Alipay and wechat have huge market in China, it sounds very promising to integrate alipay and wechat into Saleor. I will do some investigation when I'm available.

All 7 comments

Hey @shellwang, currently we don't have any official support for these gateways, I also don't know about any "unofficial" implementations. Payments architecture in Saleor is not in the final form yet as we're going to make the API cleaner by extracting some of the common payment interfaces to an external library. Also, we're going to move the gateways integration code to separate project as well (#3422).

I'm not familiar with neither of these gateways, so I cannot tell you about the details of the implementation, but I would assume that most gateways work in a similar manner. I'd recommend looking at the Stripe or Braintree implementation that we currently have and then try to implement a simliar flow for Alipay/Wechat.

After quick googling, I found some Python bindings to Alipay that could be helpful. In the case of Wechat, if there is no Python library, you'd have to create some Python client yourself, that you could later use with Saleor.

That's all I can tell for now, but if you have more specific questions about our payments architecture, feel free to ask.

@maarcingebala Thanks for your reply. I'm still do research on Alipay and Wechat. Yes, that's right. Someone have integrated Alipay successfully. I will refer to the information you provided. Truly thanks.

Since the payment is the core problem of e-commerce website. I fully support you move the gateway integration to a separate repo.

Alipay and wechat have huge market in China, it sounds very promising to integrate alipay and wechat into Saleor. I will do some investigation when I'm available.

@shellwang I think you can pay through wechat using Stripe as well. Stripe is already implemented in Saleor, it would probably require some changes though.

That could be a temporary solution, until Alipay gets implemented. Alipay being used by literally everyone in China.

@NyanKiyoshi guess this document shows that stripe also supports alipay? link

Update: Stripe supported local payment methods:

image

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings