Zum Hauptinhalt springen

Alipay

Schritt 1. Vorbereitung

You need a merchant account at Alipay Open Platform.

Bevor Sie auf Alipay zugreifen, gibt es einige Vorbereitungen, die getroffen werden müssen.

See preparation before access.

1.1 APPID erhalten

Melden Sie sich bei der Alipay Open Platform Konsole an und erstellen Sie eine Anwendung.

Wie man die APPID erhält: Alipay APPID Abfrageanleitung

1.2 Cert konfigurieren

Generate an RSA2 certificate per the Alipay doc to obtain appPrivateKey.txt and appPublicKey.txt.

Upload the certificate to the application and download three files: alipayRootCert.crt, appCertPublicKey.crt, alipayCertPublicKey.crt.

Create a Cert named App Cert in Casdoor:

CasdoorValue
TypePayment (x509)
CertificateInhalt von appCertPublicKey.crt
Private keyInhalt von appPrivateKey.txt

alipay app cert

Create a Cert named Root Cert in Casdoor:

CasdoorValue
TypePayment (x509)
CertificateInhalt von alipayCertPublicKey.crt
Private keyInhalt von alipayRootCert.crt

alipay root cert

Schritt 2. Erstellen Sie einen Alipay-Zahlungsanbieter

Erstellen Sie als Nächstes einen Alipay-Zahlungsanbieter in Casdoor, indem Sie die notwendigen Informationen ausfüllen.

CasdoorValue
CategoryPayment
TypeAlipay
Client IDAPPID from step 1.1
CertApp Cert from step 1.2
Root CertRoot Cert from step 1.2

alipay provider

Schritt 3. Fügen Sie den Alipay Pay-Zahlungsanbieter für Ihr Produkt hinzu

Zum Schluss fügen Sie den Alipay-Zahlungsanbieter für Ihr Produkt hinzu, damit Benutzer das Produkt mit Alipay kaufen können.

Currency Requirement

Alipay only supports transactions in Chinese Yuan (CNY). When adding Alipay as a payment provider, ensure your product's currency is set to CNY. Products with other currencies will be rejected during creation or update to prevent payment failures.

wechat pay Zahlungsanbieter für Produkt hinzufügen