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:
| Casdoor | Value |
|---|---|
| Type | Payment (x509) |
| Certificate | Inhalt von appCertPublicKey.crt |
| Private key | Inhalt von appPrivateKey.txt |

Create a Cert named Root Cert in Casdoor:
| Casdoor | Value |
|---|---|
| Type | Payment (x509) |
| Certificate | Inhalt von alipayCertPublicKey.crt |
| Private key | Inhalt von alipayRootCert.crt |

Schritt 2. Erstellen Sie einen Alipay-Zahlungsanbieter
Erstellen Sie als Nächstes einen Alipay-Zahlungsanbieter in Casdoor, indem Sie die notwendigen Informationen ausfüllen.
| Casdoor | Value |
|---|---|
| Category | Payment |
| Type | Alipay |
| Client ID | APPID from step 1.1 |
| Cert | App Cert from step 1.2 |
| Root Cert | Root Cert from step 1.2 |

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.
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.
