Skip to main content
WeChat Pay via HitPay redirects the customer to a HitPay hosted checkout page where the customer can scan the presented QR code to proceed with payment.

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

  1. 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.
  2. 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.
  3. 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

Use the payment method type HITPAY_WECHAT wherever the code below references YOUR_PAYMENT_METHOD_TYPE.

Go live

Make sure to use production credentials.