E-commerce configuration

Updated at:
Copy as MD

The website e-commerce configuration consists of three main parts: the order list, sales configuration, and payment configuration. This topic describes how to use these features.

1.1 Order list

  • Use case: View orders placed on your website.

  • Feature description: You can filter and view orders by order status, order time, username, or order ID.

2.1 Sales configuration

  • Use case: Configure sales and delivery pricing rules for orders placed on your website.

  • Feature description: You can set the pricing currency (CNY/USD), order validity period, default shipping fee, and shipping carrier (such as SF Express).

3.1.1 Alipay MD5

Note

The payment configuration feature allows you to set up payment methods for your website, including Alipay, WeChat Pay, and PayPal.

The Alipay MD5 key configuration applies only to business users who registered with Alipay before June 2021. Follow these steps:

  1. Register an Alipay merchant account and complete the real-name authentication. For details, see Alipay Authentication.

  2. Log in to the Alipay Merchant Center. On the Product Center page, sign up for mobile website payment and PC website payment. Click the Sign Up Now button on each product card.

  3. After signing up, go to the Account Center to get your PID. To obtain your MD5 key, click View to the right of the MD5 key field and complete the phone verification. The PID is displayed on the page as a numeric string.

  4. In the Alipay account field, enter the email or phone number used to register your Alipay merchant account. Paste the PID and MD5 key into the PID and merchant key fields, respectively. Click OK to complete the configuration.

3.1.2 Alipay RSA

Alipay RSA key configuration is available for all users.

  1. Register an Alipay merchant account and complete the real-name authentication. For details, see Alipay Authentication.

  2. Log in to the Alipay Merchant Center. On the Product Center page, sign up for mobile website payment and PC website payment. The process is the same as for the MD5 signing method; click the Sign Up Now button on each product card.

  3. After you successfully sign the contract, on the Application Key Generation Platform, click RSA2 > PKCS1 (for non-Java) > Generate Key to generate the application private key and application public key. The application private key is the merchant private key. The generated keys are displayed as long strings in the Application Private Key and Application Public Key text boxes, respectively.

  4. On the Alipay Open Platform, navigate to Create Application > Web/Mobile App Development > Go to Create to create a website payment application. On the creation page, you must enter an Application Name and upload an application icon.

    Important

    When creating the application, provide only an application name and icon. Choose a name related to your website's payment function. Do not use words like "test" in the name to avoid rejection during the review process.

  5. After the application is created, go to App Info > Set/View. Paste the application public key from step 3 into the box to generate the Alipay public key.

  6. After the application is created, you can find the App ID on its overview page. On the Overview page, add capabilities to your application by clicking Add Capability and adding PC website payment and mobile website payment.

  7. Enter the application private key from step 3 into the merchant private key field, the Alipay public key from step 5 into the Alipay public key field, and the App ID from step 6 into the App ID field. You can view your transactions on the Transaction Orders page in the Alipay Merchant Center.

3.2 WeChat Pay

  1. Log in to the WeChat Pay Merchant Platform with your WeChat merchant account. Click Product Center at the top of the page. In the product list, find and click H5 Payment and Native Payment, then follow the prompts to enter your information and complete the applications.

  2. Payment configuration: After your application is approved, click Development Configuration in the left-side menu. Scroll down to the payment configuration section, where you can configure H5 Payment, Native Payment, and Official Account Payment.

    • To configure H5 Payment, add your website's top-level domain to the H5 Payment Domain.

    • To configure Native Payment, add your website's top-level domain to the native payment callback URL.

    • To configure Official Account Payment, add your website's top-level domain to the payment authorization directory in the format: your-top-level-domain/WexinApi/.

  3. After you complete the configuration, log in to the WeChat Official Accounts Platform. Click your profile picture in the top-right corner and select Function Settings from the dropdown menu. Click Settings next to JS-SDK secure domain name, and download the file provided in the pop-up dialog box. Next, go to the SEO Promotion > Site Verification page in your website's backend. In the File Verification area, upload the verification file to the WeChat Promotion Verification File field. After the upload is successful, set the Webpage Authorization Domain to your website's top-level domain.

  4. In the left-side menu of the WeChat Official Accounts Platform, navigate to Settings & Development > Development > Basic Configuration. On the Basic Configuration page, you can find your App ID and AppSecret.

  5. In the left-side menu of the WeChat Official Accounts Platform, navigate to WeChat Pay > Merchant Info to find your merchant ID on the Merchant Info page.

    Note

    If WeChat Pay is not yet activated for your account, you must activate it to view this information.

  6. In the WeChat Pay Merchant Platform, install an Operation Certificate, which allows you to set a custom API key.

  7. Return to your website's backend and navigate to E-commerce & Membership > Payment Configuration. Click Enable to the right of WeChat Pay. In the dialog box, enter the App ID, AppSecret, merchant ID, and API key from steps 4, 5, and 6. Click OK to save the configuration.

3.3 PayPal

  1. Log in to PayPal with your business account. Hover over the settings icon in the upper-right corner and click Account Settings. On the Account Settings page, click Update to the right of website preferences. In the Website payments section of the next page, find the website preferences option, described as "Return customers to my website after they pay with PayPal."

  2. On the Website payment preferences page, go to the Auto return for website payments section, select On, and enter http://<your-top-level-domain>/Payment/PaypalReturnUrl in the Return URL field. After saving, go to the Payment data transfer (optional) section and select On to view your Identity Token.

  3. In the PayPal Payment Configuration dialog box, enter your receiving account and Identity Token, then click OK.