使用增强的定期付款对 IPN 参数是不是有任何更改
Posted
技术标签:
【中文标题】使用增强的定期付款对 IPN 参数是不是有任何更改【英文标题】:Are there any changes to IPN params with Enhanced Recurring Payments使用增强的定期付款对 IPN 参数是否有任何更改 【发布时间】:2014-11-23 13:32:10 【问题描述】:我正在使用 Paypal 网站付款标准来接受定期付款,但正在考虑升级到“增强型定期付款”以接受没有贝宝帐户的人的定期付款。我想知道,如果 API 有任何变化怎么办?具体来说,IPN 消息是否完全不同?我找不到任何关于增强定期付款如何改变它的信息,如果有的话。
如果有人知道,或者可以在没有 PayPal 帐户的情况下发布增强定期付款的示例 IPN,那就太好了!
【问题讨论】:
【参考方案1】:PayPal 付款的 IPN 和信用卡付款的 IPN 之间只有一个变量不同。对于信用 IPN,除了其他变量之外,您还将收到一个额外的变量“receipt_id”。我在下面发布了两个示例 IPN:
当有人通过信用卡选项付款时的 ERP IPN
mc_gross=1.00 &protection_eligibility=Eligible &address_status=confirmed &payer_id=ZQSC4
4KE3MPNE &address_street=3710 Spring Haven Trail ada &payment_date=07:49:47 Sep 29, 2014 PDT
&payment_status=Completed &charset=UTF-8 &address_zip=07054 &first_name=Eshan &
option_selection1=Small &option_selection2=Red &option_selection3=Value for the text field &
amp;mc_fee=0.33 &address_country_code=US &address_name=Eshan agag ¬ify_version=3.8 &a
mp;subscr_id=I-KJR1N7DVTSFV &custom=THIS IS CUSTOM VARIABLE FOR SUBSCRIPTION &payer_status=u
nverified &business=XXXXXXXXX &address_country=United States &address_city=Pa
rsippany &verify_sign=Aw6X5vyHflgdAgaJGWvPoCJ8QoI9AGpk50cgjQn5vFFAb.keQURphbSq &payer_email=
jain@jainwain.com &option_name1=First Drop Down &option_name2=Second Drop Down &option_n
ame3=This is Text field &contact_phone=434-343-3434 &txn_id=9E162447RW023401J &payment_t
ype=instant &last_name=agag &address_state=NJ &receiver_email=XXXXXXXXXX &
payment_fee=0.33 &receiver_id=XXXXXXXXX &txn_type=subscr_payment &item_name=Passing
custom field in subs button to see if it comes in IPN and show up in Account &mc_currency=USD &a
mp;residence_country=US &test_ipn=1 & **receipt_id=3610-4109-0310-2116** &transaction_subject
=Passing custom field in subs button to see if it comes in IPN and show up in Account &payment_g
ross=1.00 &ipn_track_id=42d902b155b6d
有人通过 PayPal 付款时的 IPN
mc_gross=1.00 &invoice= 12345678 &protection_eligibility=Eligible &address_status=confir
med &payer_id=XXXXXXXXXX &address_street=cxas asa &payment_date=09:40:46 Sep 29, 2014
PDT &payment_status=Completed &charset=UTF-8 &address_zip=95616 &first_name=Eshan P
ersonal Test &option_selection1=Small &option_selection2=Red &option_selection3=Using th
e text field as the hidden one and also passed invoice id &mc_fee=0.33 &address_country_code
=US &address_name=Eshan Personal Test Account ¬ify_version=3.8 &subscr_id=I-79KEGCFRB
8V6 &custom=THIS IS CUSTOM VARIABLE FOR SUBSCRIPTION &payer_status=verified &business=XXXXXXX
&address_country=United States &address_city=FL &verify_sign=ABoC7zeo
JKOS8-FgzxlPH0pKFIpkABi1td4dId5Vndd1boMDXpvdWXfX &payer_email=XXXXXXXXX &option_n
ame1=First Drop Down &option_name2=Second Drop Down &option_name3=This is Text field &co
ntact_phone=408-767-7151 &txn_id=5LX310552A647342M &payment_type=instant &last_name=Acco
unt &address_state=FL &receiver_email=XXXXXXX &payment_fee=0.33 &receiv
er_id=XXXXXXX &txn_type=subscr_payment &item_name=Passing custom field in subs button
to see if it comes in IPN and show up in Account &mc_currency=USD &residence_country=US &
;test_ipn=1 &transaction_subject=Passing custom field in subs button to see if it comes in IPN a
nd show up in Account &payment_gross=1.00 &ipn_track_id=80ffac6da5284
我还附上了屏幕截图:
【讨论】:
其实还有几个问题,如果您不介意的话:如果需要,我还能退还付款,或者部分退还吗?我可以像现在这样以编程方式进行吗? 是的,您可以进行部分或全额退款。我为上面发布的交易做了部分退款,你可以在这里看到 IPN 消息:screencloud.net/v/vLzl以上是关于使用增强的定期付款对 IPN 参数是不是有任何更改的主要内容,如果未能解决你的问题,请参考以下文章