以下是PayPal Express Checkout重复付款IPN请求的示例:
[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] => xxxx@gmail.com
[verify_sign] => AlAlnsACWRTf4OV6vRMZG4sCyEdYACBnr7ishagKt60BxtlJgPjaRIAh
[payer_email] => xxxx@gmail.com
[initial_payment_amount] => 0.00
[profile_status] => Active
[amount] => 6.56
[txn_id] => 3PE0612xxxx
[payment_type] => instant
[last_name] => User
[receiver_email] => xxxx@gmail.com
[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
的字段是商家自己的唯一参考号或发票号,可用于唯一标识个人资料。
创建API调用CreateRecurringPaymentsProfile
时,如何传递此值,我应该在API调用中设置哪个字段?
谢谢
答案 0 :(得分:1)
您需要使用PROFILEREFERENCE参数传入将在rp_invoice_id参数中通过IPN返回的值。
PROFILEREFERENCE
(可选)商家自己的唯一参考号或发票号。
字符长度和限制:127个单字节字母数字字符
答案 1 :(得分:0)
它不会像这样工作,新版本的API正在使用REST调用。
要使其正常工作,您必须先下载Paypal SDK。它位于http://paypal.github.io/sdk/
确保使用SDK的官方版本,可能有可能使用不同的版本,有人可能会坐在那里窃取您的宝贵信息。我的建议是在开始工作之前通过原始文档,有一个想法。
安装SDK后,您可以使用下面链接中给出的示例
https://devtools-paypal.com/guide/recurring_payment_cc/php?interactive=ON&env=sandbox
这将进行API调用。
您也可以尝试使用https://developer.paypal.com/webapps/developer/docs/api/
提供的完整文档快乐的编码! Atul Jindal