Get started with WeChat Pay via HitPay
Before you begin
If this is your first payment method, make sure to follow the Get started guide to begin processing payments with Primer.Configure in the Dashboard
- Add WeChat Pay via HitPay payment method to your Dashboard Go to the integrations section of the Dashboard, click on the ‘New Integration’ button and search for HitPay. Follow the instructions to connect your WeChat Pay via HitPay account to your Primer Dashboard.
- Activate WeChat Pay via HitPay on the Checkout Go to the Checkout section of the Dashboard and activate the WeChat Pay via HitPay payment method.
- Configure a Workflow to process payments made with WeChat Pay via HitPay Go to Workflows, and ensure there is a workflow with the Authorization action configured to process APMs.
Prepare the client session
HitPay leverages the following parameters to process a payment. Pass them when creating the client session.Prepare the SDK for payments
- Web
- iOS
- Android
Use the payment method type
HITPAY_WECHAT wherever the code below references YOUR_PAYMENT_METHOD_TYPE.- Primer Checkout (recommended)
- Universal Checkout (legacy)
- Headless Universal Checkout (legacy)
Primer Checkout is our latest web SDK, built around declarative web components. Once WeChat Pay via HitPay is enabled in your Dashboard, the default For dynamic rendering based on what the server returns, listen to primer:methods-update or use primer-payment-method-container for declarative filtering.
<primer-checkout> layout renders it automatically alongside your other methods — no payment-method-specific markup is required.