我已经从我的企业沙盒帐户中创建了一个“订阅”按钮,并尝试将定期付款设置为1美元/周。
当我单击网站上的按钮时,一切正常。但是我不知道返回成功链接后应该在数据库中保存什么。
我收到贝宝的回复是
Array
(
[txn_type] => subscr_signup
[subscr_id] => I-6ALNCWHKXXXX
[last_name] => sharma
[residence_country] => US
[mc_currency] => USD
[item_name] => Registration Weekly Button
[business] => test.business.kaching@gmail.com
[amount3] => 1.00
[recurring] => 1
[address_street] => 1 Main St
[payer_status] => verified
[payer_email] => test123@starwebindia.com
[address_status] => confirmed
[first_name] => harsh
[receiver_email] => test.business.kaching@gmail.com
[address_country_code] => US
[payer_id] => XXXXJ2XM396NW
[address_city] => San Jose
[reattempt] => 1
[payer_business_name] => harsh sharma's Test Store
[address_state] => CA
[subscr_date] => 05:36:38 Oct 01, 2018 PDT
[btn_id] => 390XXXX
[address_zip] => 95131
[charset] => windows-1252
[period3] => 1 W
[address_country] => United States
[mc_amount3] => 1.00
[address_name] => harsh sharma's Test Store
[auth] => AQUy6SmVq3w80zTvAfKwk62IyEsqNgyEWO6KVB8GfUMyytd2UXdckg.UiyDu4NVdi72buUymVDeXtO0XXXXXXXX
[form_charset] => UTF-8
)
我对此有一些疑问
答案 0 :(得分:0)
您的问题的答案:
1)我应该在数据库中保存响应的哪些属性?
答案:subscr_id,amount3,payer_email,payer_id,period3,auth 这些字段存储在数据库中
2)如果我成功完成了付款,那么我的定期付款信息中心会出现新的一行。在下一个重复日期会发生什么?我该如何处理该重复过程?
回答:为此,您必须创建webhook,它会在下一个重复日期自动创建请求?哪个会向您确认您必须为下次订阅付费。
3)与重复无关,但我想跳过“返回到销售人员的站点”页面。
答案:不确定在付款过程中是否必须使用帐户详细信息。
我希望答案对您有所帮助。 谢谢