Links

Alipay Recurring Payments

Alipay Recurring Payments must be manually approved by a lengthy Stripe verification process. You must contact Stripe support in order to request this feature to be enabled on your account.
Alipay recurring payments for WooCommerce requires the use of the WooCommerce subscription plugin. Alipay recurring payments are not yet supported via Payment Page or MemberPress integrations.
Ater checking the requirements above, you can enable Alipay recurring payments by following the steps below.
By default, China Payments Plugin uses Stripe Connect. You must override Stripe Connect with the use of our helper plugin and set API keys instead. For some reason, Stripe is not allowing Alipay Recurring payments to function without API keys.
Be sure you've already connected Stripe with Stripe Connect before following the steps below. The following steps will override Stripe Connect to use API keys instead. The helper plugin can be uninstalled after this process has been followed. Reconnecting Stripe will override the API keys.
Please download the helper plugin from our public Github repository by clicking the green button "Code" and then "Download Zip" .
Then, unzip the plugin locally. Open the PHP file with any basic text editor or a code editing program like Visual Studio Code.
The contents will look something like this:
<?php
/**
* Plugin Name: China Payments Plugin - Helper
* Plugin URI: https://chinapaymentsplugin.com
* Description: Easily accept WeChat, Alipay & Credit Card payments from Chinese customers in a simple payment form.
* Version: 1.0.0
* Author: Gaucho Plugins
* Author URI: https://gauchoplugins.com
* License: GPLv3
* Text Domain: china-payments
* Domain Path: /languages/
*/
if( isset( $_GET[ 'update_credentials_stripe' ] ) ) {
add_action( "init", function() {
ChinaPayments\Settings::instance()->update( [
'stripe_test_public_key' => '',
'stripe_test_secret_key' => '',
'stripe_live_public_key' => '',
'stripe_live_secret_key' => '',
] );
exit;
});
}
Insert your API keys between the empty apostrophes next to the corresponding fields for each key, such as stripe_test_public_key.
Save the file, zip the folder containing the PHP file back up, and then upload it to your WordPress site.
After uploading, append the following parameter to your admin URL ?update_credentials_stripe=1, which will result in a white screen.
It should look something like this:
https://your-domain.com/wp-admin/admin.php?update_credentials_stripe=1
The effect of visiting this URL is that your API keys get stored in the database instead of the Stripe Connect details.
Subscriptions will not appear in the Stripe Dashboard because the plugin takes advantage of the Stripe SetupIntents API and not the /v1/subscriptions API. However, Alipay recurring payments will process correctly, and can be cancelled on the WooCommerce side.