-
-
-
-
- -
- the Alipay Open Platform
- esc_html__( 'Go to the %1$s and log in.', 'woo-alipay' ),
- sprintf(
- '%s',
- 'https://openhome.alipay.com/platform/developerIndex.htm',
- esc_html__( 'Alipay Open Platform', 'woo-alipay' )
- )
- );
- ?>
-
- -
- url
- esc_html__( 'If necessary, create a new app by following the options under the create application "创建应用" menu: website & mobile application "网页&移动应用" > payment access "支付接入". The application type "应用类型" should be web page application "网页应用" and the website URL "网址url" should be %1$s. Creating an app will require one or two working day(s) audit of your website content by Alipay.', 'woo-alipay' ),
- sprintf(
- '
%s',
- esc_html( trailingslashit( get_home_url() ) )
- )
- );
- ?>
-
- -
- url with placeholder, %2$s is
placeholder
- esc_html__( 'Once the app is created, go to the app information page - accessible directly via %1$s (replace %2$s with the App ID to be used by Woo Alipay).', 'woo-alipay' ),
- sprintf(
- '%s',
- 'https://openhome.alipay.com/platform/appManage.htm#/app/[[YOUR_APP_ID]]/appInfo'
- ),
- sprintf(
- '%s',
- '[[YOUR_APP_ID]]'
- )
- );
- ?>
-
- -
-
-
- -
-
-
- -
-
-
-
-
-
-
-
-
-
-
- -
- url with placeholder, %2$s is
placeholder
- esc_html__( 'Go to the app overview page - accessible via %1$s (replace %2$s with the App ID to be used by Woo Alipay).', 'woo-alipay' ),
- sprintf(
- '%s',
- 'https://openhome.alipay.com/platform/appManage.htm#/app/[[YOUR_APP_ID]]/overview'
- ),
- sprintf(
- '%s',
- '[[YOUR_APP_ID]]'
- )
- );
- ?>
-
- -
- Computer website payment "电脑网站支付", %2$s is Mobile website payment "手机网站支付"
- esc_html__( 'Click the add feature button "添加功能" and add the computer website payment "电脑网站支付" and the mobile website payment "手机网站支付" features - these features need to have been activated beforehand (process not describe in this guide - see the Payment products "支付产品" %1$s and %2$s).', 'woo-alipay' ),
- sprintf(
- '%s',
- 'https://b.alipay.com/signing/productDetailV2.htm?productId=I1011000290000001000',
- esc_html__( 'Computer website payment "电脑网站支付"', 'woo-alipay' )
- ),
- sprintf(
- '%s',
- 'https://b.alipay.com/signing/productDetailV2.htm?productId=I1011000290000001001',
- esc_html__( 'Mobile website payment "手机网站支付"', 'woo-alipay' )
- )
- );
- ?>
-
- -
- url with placeholder, %2$s is
placeholder
- esc_html__( 'Go to the app information page - accessible via %1$s (replace %2$s with the App ID to be used by Woo Alipay).', 'woo-alipay' ),
- sprintf(
- '%s',
- 'https://openhome.alipay.com/platform/appManage.htm#/app/[[YOUR_APP_ID]/appInfo'
- ),
- sprintf(
- '%s',
- '[[YOUR_APP_ID]]'
- )
- );
- ?>
-
- -
-
-
- -
- url
- esc_html__( 'In the application gateway "应用网关" modal, enter %1$s and click the confirm "确定" button.', 'woo-alipay' ),
- sprintf(
- '
%s',
- esc_html( $url_root )
- )
- );
- ?>
-
- -
-
-
- -
- scheme, %2$s is
url
- esc_html__( 'In the authorization callback address "授权回调地址" modal, enter %1$s in the callback address type "回调地址类型" field, %2$s in the callback address "回调地址" field, and leave the verify domain only "只验证域名" checkbox unchecked for added security, then click the confirm "确定" button.', 'woo-alipay' ),
- sprintf(
- '%s',
- esc_html( $scheme )
- ),
- sprintf(
- '%s',
- esc_html( $wc_callback )
- )
- );
- ?>
-
-
-
-
-
-
-
-
-
- application public key, %2$s is application private key, %3$s is Alipay public key
- esc_html__( 'To complete the payment gateway configuration, you need to generate an %1$s, an %2$s and an %3$s.', 'woo-alipay' ),
- sprintf(
- '%s',
- esc_html__( 'application public key', 'woo-alipay' )
- ),
- sprintf(
- '%s',
- esc_html__( 'application private key', 'woo-alipay' )
- ),
- sprintf(
- '%s',
- esc_html__( 'Alipay public key', 'woo-alipay' )
- )
- );
- ?>
-
-
-
- (option 1)
- esc_html__( 'Generate the application keys with the Alipay Open Platform Development Assistant application %1$s:', 'woo-alipay' ),
- sprintf(
- '%s',
- esc_html__( '(option 1)', 'woo-alipay' )
- )
- );
- ?>
-
-
- -
- Alipay tools documentation page
- esc_html__( 'Go to the %1$s and download the Alipay Open Platform Development Assistant application for the operating system of your choice (Windows or MacOS).', 'woo-alipay' ),
- sprintf(
- '%s',
- 'https://docs.open.alipay.com/291/106097/',
- esc_html__( 'Alipay tools documentation page', 'woo-alipay' )
- )
- );
- ?>
-
- -
-
-
- -
- alipay_app_public_key.txt
- esc_html__( 'Copy the application public key displayed in the "应用公钥" text area in a text file on your computer (referred to as %1$s below).', 'woo-alipay' ),
- '
alipay_app_public_key.txt'
- );
- ?>
-
- -
- alipay_app_private_key.txt, %2$s is DO NOT SHARE THIS VALUE WITH ANYONE
- esc_html__( 'Copy the application private key displayed in the "应用私钥" text area in a text file on your computer (referred to as %1$s below) - %2$s.', 'woo-alipay' ),
- '
alipay_app_private_key.txt',
- sprintf(
- '%s',
- esc_html__( 'DO NOT SHARE THIS VALUE WITH ANYONE', 'woo-alipay' )
- )
- );
- ?>
-
-
-
-
- openssl, %2$s is (option 2)
- esc_html__( 'Generate the application keys with %1$s command line in a terminal %2$s:', 'woo-alipay' ),
- 'openssl',
- sprintf(
- '%s',
- esc_html__( '(option 2)', 'woo-alipay' )
- )
- );
- ?>
-
-
- -
- openssl
- esc_html__( 'Type %1$s to open the OpenSSL command line tool.', 'woo-alipay' ),
- '
openssl'
- );
- ?>
-
- -
- genrsa -out alipay_app_private_key.txt 2048, %2$s is
alipay_app_private_key.txt, %3$s is DO NOT SHARE THIS VALUE WITH ANYONE
- esc_html__( 'Type %1$s to generate the application private key file (referred to as %2$s below) - %3$s.', 'woo-alipay' ),
- 'genrsa -out alipay_app_private_key.txt 2048',
- 'alipay_app_private_key.txt',
- sprintf(
- '%s',
- esc_html__( 'DO NOT SHARE THIS VALUE WITH ANYONE', 'woo-alipay' )
- )
- );
- ?>
-
- -
- rsa -in alipay_app_private_key.txt -pubout -out alipay_app_public_key.txt, %2$s is
alipay_app_public_key.txt
- esc_html__( 'Type %1$s to generate the application public key file (referred to as %2$s below).', 'woo-alipay' ),
- 'rsa -in alipay_app_private_key.txt -pubout -out alipay_app_public_key.txt',
- 'alipay_app_public_key.txt'
- );
- ?>
-
- -
- openssl
- esc_html__( 'Type %1$s to quit the command line tool.', 'woo-alipay' ),
- '
exit'
- );
- ?>
-
- -
-
-
-
-
-
- (requires completing option 1 or option 2 above)
- esc_html__( 'Register the application public key in Alipay Open Platform and generate the Alipay public key %1$s:', 'woo-alipay' ),
- sprintf(
- '%s',
- esc_html__( '(requires completing option 1 or option 2 above)', 'woo-alipay' )
- )
- );
- ?>
-
-
- -
- url with placeholder, %2$s is
placeholder
- esc_html__( 'Go to the app information page - accessible via %1$s (replace %2$s with the App ID to be used by Woo Alipay).', 'woo-alipay' ),
- sprintf(
- '%s',
- 'https://openhome.alipay.com/platform/appManage.htm#/app/[[YOUR_APP_ID]/appInfo'
- ),
- sprintf(
- '%s',
- '[[YOUR_APP_ID]]'
- )
- );
- ?>
-
- -
- "设置/查看" to open the configuration modal.', 'woo-alipay' ); ?>
-
- -
-
-
- -
-
-
- -
- alipay_app_public_key.txt
- esc_html__( 'Paste the content of the previously saved file %1$s in the "填写公钥字符" text area.', 'woo-alipay' ),
- '
alipay_app_public_key.txt'
- );
- ?>
-
- -
-
-
-
-
-
-
-
-
- -
- url with placeholder, %2$s is
placeholder
- esc_html__( 'Go to the app information page - accessible via %1$s (replace %2$s with the App ID to be used by Woo Alipay).', 'woo-alipay' ),
- sprintf(
- '%s',
- 'https://openhome.alipay.com/platform/appManage.htm#/app/[[YOUR_APP_ID]/appInfo'
- ),
- sprintf(
- '%s',
- '[[YOUR_APP_ID]]'
- )
- );
- ?>
-
- -
- "设置/查看" to open the configuration modal.', 'woo-alipay' ); ?>
-
- -
-
-
- -
-
-
- -
-
-
- -
- alipay_app_private_key.txt
- esc_html__( 'Paste the content of the previously saved file %1$s in the "Alipay merchant application private key" field below.', 'woo-alipay' ),
- '
alipay_app_private_key.txt'
- );
- ?>
-
- -
-
-
-
-