我在我的支付应用程序中使用贝宝支付网关 IPN。
付款成功后,我会正确收到 IPN 响应。
收到后,我将其发回以进行验证。
$ch = curl_init();
$paypalUrl = PAYPAL_URL;
curl_setopt($ch, CURLOPT_URL, $paypalUrl);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_field);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
$res = curl_exec($ch);
现在我多次收到相同的 IPN 响应(大约 9 次)。我正在以以下格式发送 IPN 响应以进行验证:
cmd=_notify-validate&orderUUID=eac962fe-3a0a-4b26-be89-e5ccf54ee2cb&
mc_gross=15.00&settle_amount=11.58&
protection_eligibility=Ineligible&payer_id=LR3LZ8R978ZK8&tax=0.00
&payment_date=06%3A55%3A17+Jun+05%2C+2013+PDT&payment_status=Completed
&charset=windows1252&first_name=abc&option_selection1=&option_selection2=&
mc_fee=0.74&exchange_rate=0.812061¬ify_version=3.7
&settle_currency=USD&custom=&payer_status=verified&business=business%40mydomain.com
&quantity=1&verify_sign=AFcWxV21C7fd0v3bYYYRCpSSRl31AlU7JAwS8--HoB6lJfimizlVxnVa&payer_email=personal%40mydomain.com&option_name1=tour&option_name2=abc+abc&txn_id=6RU07240YB682730C&payment_type=instant&last_name=abc&receiver_email=business%40mydomain.com&payment_fee=&receiver_id=LW9JSM57BYH5Q&txn_type=web_accept&item_name=ite m+name&mc_currency=AUD&item_number=&residence_country=US&test_ipn=1&handling_amount=0.00 &transaction_subject=item+reserva!tion+for+1+spaces+on+Jun+06&payment_gross=&shipping=0.00&ipn_track_id=b85bc954da9e5
多次收到相同响应的原因是什么?
正如我所关注的那样,我们需要向贝宝发送 200 OK 以获取 IPN 响应,如果 Paypal 没有收到 200 OK 它会再次重试......是一样的吗?