recurring_description code>
null
null
(Any Alphanumeric)
(任何字母数字)
A custom description for the recurring charge
经常性费用的自定义说明 p>
Usage Examples
用法示例 h3>
Simple Payment form with specified amount
指定金额的简单付款表格
[affinipay-payment type=creditcard amount=19.95]
[affinipay-pay type =信用卡数量= 19.95] p>
Display all customer fields with a set amount of $19.95
显示所有金额为$ 19.95的客户字段
[affinipay-payment type=echeck amount=19.95 customer_fields=yes]
[affinipay-pay type = echeck amount = 19.95 customer_fields = yes] p>
Display amount field Donation pages can allow users to enter a custom amount.
显示金额字段捐赠页面可以允许用户输入自定义金额。
[affinipay-payment]
[affinipay-payment] p>
Recurring Charges
经常性收费 h3>
Recurring charge of $100.00 once a month
每月一次100.00美元的经常性费用
[affinipay-payment type=creditcard amount=100.00 recurs=MONTHLY]
[affinipay-pay type =信用卡金额= 100.00重复次数= MONTHLY] p>
Recurring charge of $250.00 every three months
每三个月$ 250.00的经常性费用
[affinipay-payment type=creditcard amount=250.00 recurs=MONTHLY recurring_interval=3]
[affinipay-付款类型=信用卡金额= 250.00重复次数= MONTHLY recurring_interval = 3] p>
Available Action Hooks
可用的动作挂钩 h3>
Hook
挂钩
Description
说明 p>
affinipay_charge_success
affinipay_charge_success code>
Called when a new charge has successfully completed.
成功完成新费用后调用。
The charge is passed as an argument to this callback
费用作为参数传递给此回调 p>
affinipay_charge_error
affinipay_charge_error code>
Called when a charge fails.
充电失败时调用。
An exception is passed as an argument to the callback
异常作为参数传递给回调 p>
Available Filter Hooks
可用的过滤器挂钩 h3>
Filter
过滤器
Description / Use Case
说明/用例 p>
affinipay_before_payment_form
affinipay_before_payment_form code>
Add content before the payment form is rendered
在呈现付款表格之前添加内容 p>
affinipay_after_payment_form
affinipay_after_payment_form code>
Add custom content after the payment form
在付款表格后添加自定义内容 p>
affinipay_before_render_customer_fields
affinipay_before_render_customer_fields code>
Add custom content before the customer fields are rendered
在呈现客户字段之前添加自定义内容 p>
affinipay_after_render_customer_fields
affinipay_after_render_customer_fields code>
Add content after the customer fields on the payment form
在付款表单上的客户字段之后添加内容 p>
affinipay_before_render_amount_field
affinipay_before_render_amount_field code>
Add content before the amount field
在金额字段前添加内容 p>
affinipay_after_render_amount_field
affinipay_after_render_amount_field code>
Add content after the amount field
在金额字段后添加内容 p>
affinipay_before_render_reference_field
affinipay_before_render_reference_field code>
Add content before the payment reference field
在付款参考字段之前添加内容 p>
affinipay_after_render_reference_field
affinipay_after_render_reference_field code>
Add custom content after the payment reference field
在付款参考字段后添加自定义内容 p>
affinipay_before_render_email_field
affinipay_before_render_email_field code>
Add custom content before the email field
在电子邮件字段之前添加自定义内容 p>
affinipay_after_render_email_field
affinipay_after_render_email_field code>
Add custom content after the email field
在电子邮件字段后添加自定义内容 p>
affinipay_before_render_name_field
affinipay_before_render_name_field code>
Add custom content before the customer name field
在客户名称字段之前添加自定义内容 p>
affinipay_after_render_name_field
affinipay_after_render_name_field code>
Add custom content after the customer name field
在客户名称字段后添加自定义内容 p>
affinipay_before_render_address_field
affinipay_before_render_address_field code>
Add custom content before the address field
在地址字段之前添加自定义内容 p>
affinipay_after_render_address_field
affinipay_after_render_address_field code>
Add custom content after the address field
在地址字段后添加自定义内容 p>
affinipay_before_render_address2_field
affinipay_before_render_address2_field code>
Add custom content before the address2 field
在address2字段之前添加自定义内容 p>
affinipay_after_render_address2_field
affinipay_after_render_address2_field code>
Add custom content after the address2 field
在address2字段后添加自定义内容 p>
affinipay_before_render_city_field
affinipay_before_render_city_field code>
Add custom content before the city field
在城市字段之前添加自定义内容 p>
affinipay_after_render_city_field
affinipay_after_render_city_field code>
Add custom content after the city field
在城市字段后添加自定义内容 p>
affinipay_before_render_state_field
affinipay_before_render_state_field code>
Add custom content before the state field
在状态字段前添加自定义内容 p>
affinipay_after_render_state_field
affinipay_after_render_state_field code>
Add custom content after the state field
在状态字段后添加自定义内容 p>
affinipay_before_postalcode_field
affinipay_before_postalcode_field code>
Add custom content before the postal code field
在邮政编码字段之前添加自定义内容 p>
affinipay_after_postalcode_field
affinipay_after_postalcode_field code>
Add custom content after the postal code field
在邮政编码字段后添加自定义内容 p>
affinipay_before_render_phone_field
affinipay_before_render_phone_field code>
Add custom content before the phone field
在电话字段前添加自定义内容 p>
affinipay_after_render_phone_field
affinipay_after_render_phone_field code>
Add custom content after the phone field
在电话字段后添加自定义内容 p>
affinipay_before_render_payment_fields
affinipay_before_render_payment_fields code>
Add custom content before the credit card field
在信用卡字段前添加自定义内容 p>
affinipay_after_render_payment_fields
affinipay_after_render_payment_fields code>
Add custom content after the credit card fields
在信用卡字段后添加自定义内容 p>