I'm trying out Subscription functionality using Paypal sandbox and the payment is successfully processed. However, when trying to verify the response, Paypal returns INVALID response.
Here's the data I'm trying to send -
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] => [email protected]
[amount3] => 52.50
[recurring] => 1
[payer_status] => verified
[payer_email] => [email protected]
[first_name] => test
[receiver_email] => [email protected]
[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
)
This is the response I get -
(
[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
)
The url that I'm trying to cURL through is -
I've also setup the character encoding to be UTF-8 in the Paypal Seller's settings in Profile > PayPal button language encoding.
Please help.