PayPal IPN,如何从下拉菜单中选择价格
Posted
技术标签:
【中文标题】PayPal IPN,如何从下拉菜单中选择价格【英文标题】:PayPal IPN, how to get chosen price from dropdown menu 【发布时间】:2020-05-27 16:20:07 【问题描述】:PayPal 按钮可以有下拉菜单,例如:
选项 1 - 5 美元 选项 2 - 10 美元 选项 3 - 15 美元当我通过 IDN 处理付款时,我将如何获得用户选择的选项?我不确定我是否只能根据支付的价格来做,因为税/费用/货币可能会改变。 PayPal 是否以某种方式传递选定的值?
"address_city":"San Jose","address_country":"United States","address_country_code":"US","address_name":"John Smith","address_state":"CA", "address_status":"confirmed","address_street":"123 any street","address_zip":"95131","business":"seller@paypalsandbox.com","custom":"xyz123","first_name": "John","invoice":"abc1234","item_name":"something","item_number":"AK-1234","last_name":"Smith","mc_currency":"USD","mc_fee": "0.44","mc_gross":"12.34","mc_gross_1":"9.34","notify_version":"2.1","payer_email":"buyer@paypalsandbox.com","payer_id":"TESTBUYERID01","payer_status" ":"verified","payment_date":"2020 年 2 月 11 日 13:07:48 PST","payment_status":"Pending","payment_type":"instant","quantity":"1","receiver_email" :"seller@paypalsandbox.com","receiver_id":"seller@paypalsandbox.com","residence_country":"US","shipping":"3.04","tax":"2.02","test_ipn":" 1","txn_id":"561648507","txn_type":"web_accept","verify_sign":"AzMNkTxgBvm9UMEVF6xwI2k3UvAsAl6Uv1oAXhmEDejTPin9MM39F2Td"
【问题讨论】:
【参考方案1】:贝宝可以。为什么不在https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_button-designer&button_type=buynow 创建一个带有下拉菜单的实际沙盒按钮并对其进行测试,这样您就可以查看实际此类按钮的IPN?
如果您希望将 IPN 发送到该帐户的个人资料 URL 中的那个,您需要先登录 www.sandbox.paypal.com 上的沙盒业务帐户。或者,在按钮的高级变量中,您可以将 notify_url=
设置为您的 IPN 侦听器。
【讨论】:
以上是关于PayPal IPN,如何从下拉菜单中选择价格的主要内容,如果未能解决你的问题,请参考以下文章