问题描述
以下是PayPal Express Checkout定期付款IPN请求的示例:
Here is example of PayPal Express Checkout Recurring Payment IPN request:
[mc_gross] => 6.56
[period_type] => Regular
[outstanding_balance] => 0.00
[next_payment_date] => 03:00:00 Jun 21, 2012 PDT
[protection_eligibility] => Ineligible
[payment_cycle] => Weekly
[tax] => 0.00
[payer_id] => K48P3Fxxxx
[payment_date] => 16:52:28 Jun 14, 2012 PDT
[payment_status] => Completed
[product_name] => Virtual Subscription $6.56 / week for 3 weeks
[charset] => windows-1252
[rp_invoice_id] => 208
[recurring_payment_id] => I-4DHKxxxx
[first_name] => Test
[mc_fee] => 0.38
[notify_version] => 3.4
[amount_per_cycle] => 6.56
[payer_status] => verified
[currency_code] => USD
[business] => [email protected]
[verify_sign] => AlAlnsACWRTf4OV6vRMZG4sCyEdYACBnr7ishagKt60BxtlJgPjaRIAh
[payer_email] => [email protected]
[initial_payment_amount] => 0.00
[profile_status] => Active
[amount] => 6.56
[txn_id] => 3PE0612xxxx
[payment_type] => instant
[last_name] => User
[receiver_email] => [email protected]
[payment_fee] => 0.38
[receiver_id] => TYDEKWLxxxx
[txn_type] => recurring_payment
[mc_currency] => USD
[residence_country] => US
[test_ipn] => 1
[transaction_subject] => Virtual Subscription $6.56 / week for 3 weeks
[payment_gross] => 6.56
[shipping] => 0.00
[product_type] => 1
[time_created] => 23:48:22 Jun 13, 2012 PDT
[ipn_track_id] => b2c853ddxxxx
如您所见,有一个名为rp_invoice_id
的字段,该字段是商人自己的唯一参考号或发票号,可用于唯一标识个人资料.
As you can see, there is field called rp_invoice_id
which is The merchant’s own unique reference or invoice number, which can be used to uniquely identify a profile.
在创建API调用CreateRecurringPaymentsProfile
时,如何传递此值,我应该在API调用中设置哪个字段?
When creating API call CreateRecurringPaymentsProfile
, how to pass this value, which field should I set in the API call?
谢谢
推荐答案
您需要使用PROFILEREFERENCE参数传入一个值,该值将通过rp_invoice_id参数中的IPN返回.
You need to use the PROFILEREFERENCE parameter to pass in a value that will be returned via IPN in the rp_invoice_id parameter.
(可选)商人自己的唯一参考号或发票号.
(Optional) The merchant's own unique reference or invoice number.
字符长度和限制:127个单字节字母数字字符
Character length and limitations: 127 single-byte alphanumeric characters
这篇关于定期付款IPN请求rp_invoice_id字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!