【发布时间】:2019-02-20 01:37:16
【问题描述】:
我正在使用 Paypal 沙盒试用订阅功能,并且付款已成功处理。但是,当尝试验证响应时,Paypal 会返回 INVALID 响应。
这是我要发送的数据 -
Array
(
[cmd] => _notify-validate
[txn_type] => subscr_signup
[subscr_id] => I-3R009NJ6JYS9
[last_name] => buyer
[residence_country] => GB
[mc_currency] => USD
[item_name] => Sellacious_Git
[business] => aditya-facilitator@codeacious.tech
[amount3] => 52.50
[recurring] => 1
[payer_status] => verified
[payer_email] => aditya-buyer@codeacious.tech
[first_name] => test
[receiver_email] => aditya-facilitator@codeacious.tech
[payer_id] => LCLETGLHU5H7A
[reattempt] => 1
[item_number] => 123
[subscr_date] => 06:35:57 Sep 15, 2018 PDT
[charset] => windows-1252
[period3] => 1 D
[mc_amount3] => 52.50
[auth] => AyB1VOVssxLlLE177ha.etTVC3E8ZWDZOAEu.e9Wezio0ciVvog4UXvI6ODZq-ZxS2tearHH1MAiO.U7E0k.IBg
[form_charset] => UTF-8
)
这是我得到的回应 -
(
[code] => 200
[headers] => Array
(
[Date] => Sat, 15 Sep 2018 14:05:29 GMT
[Server] => Apache
[X-Frame-Options] => SAMEORIGIN
[Set-Cookie] => Apache=10.72.108.11.1537020329139856; path=/; expires=Mon, 07-Sep-48 14:05:29 GMT
[Vary] => Accept-Encoding,User-Agent
[Connection] => close
[Transfer-Encoding] => chunked
[Content-Type] => text/html; charset=UTF-8
)
[body] => INVALID
)
我试图通过 cURL 的 url 是 -
我还在配置文件 > PayPal 按钮语言编码的 Paypal 卖家设置中将字符编码设置为 UTF-8。
请帮忙。
【问题讨论】:
-
能否分享您实现并发送 CURL 的完整代码?
标签: paypal paypal-sandbox sandbox paypal-subscriptions