According to the official documentation here, the possible reasons for that error code are:
- You did not apply for this particular payment gateway type
- You did apply for this payment gateway type, but it has not been approved yet
- You did apply for this payment gateway type, but it has been suspended due to violation of ToS
In your case, I guess it should be the first one.
There are several gateway types:
- Alipay_Express (Alipay Express Checkout)
- Alipay_Secured (Alipay Secured Checkout)
- Alipay_Dual (Alipay Dual Function Checkout)
- ...
You need to make sure if your AliPay account is a business one, because only a business account can you use the Alipay Express gateway type.
Regarding examples, you can check liuyug/django-alipay
, which is pretty similar to spookylukey/django-paypal
, assuming you had experience in integration with PayPal.
OT: Sorry for not providing the direct links to the GitHub repos mentioned above. StackOverflow kept saying that I need at least 10 reputation to post more than 2 links.