【问题标题】:PayPal IPN Simulator and Sandbox accountPayPal IPN 模拟器和沙盒帐户
【发布时间】:2013-05-19 23:32:34
【问题描述】:

我正在为我的 iOS 应用程序制作一个 ipn 处理程序。 我在我的应用程序中使用经典的 paypal api。 问题是当我从 PayPal IPN 模拟器进行测试时,它工作正常。 我从模拟器中收到了下面的帖子消息(我不记得有快速结帐):

map[
business:[seller@paypalsandbox.com] 
item_number1:[AK-1234] 
receiver_id:[seller@paypalsandbox.com] 
first_name:[John] 
mc_shipping1:[1.02] 
tax:[2.02] 
residence_country:[US] 
txn_type:[cart] 
mc_shipping:[3.02] 
test_ipn:[1] 
custom:[xyz123] 
mc_handling:[2.06] 
mc_handling1:[1.67] 
payer_id:[TESTBUYERID01] 
payment_status:[Completed] 
receiver_email:[seller@paypalsandbox.com] 
mc_currency:[USD] 
verify_sign:[AdsvkafFyuBADI8IS081RggbvUxmAu2ntBemAGacZ3Dx56qQzmc9QzhK] 
address_country:[United States] 
item_name1:[something] 
mc_fee:[0.44] 
address_state:[CA] 
mc_gross1:[9.34] 
payer_status:[unverified] 
last_name:[Smith] 
invoice:[abc1234] 
payment_date:[07:44:54 23 May 2013 PDT] 
address_city:[San Jose] 
mc_gross:[12.34] 
address_street:[123, any street] 
notify_version:[2.4] 
txn_id:[298300930] 
payer_email:[buyer@paypalsandbox.com] 
address_status:[confirmed] 
payment_type:[instant] 
address_zip:[95131] 
address_country_code:[US] 
address_name:[John Smith]
]

但是当我尝试使用沙盒帐户进行测试时,我收到了下面的帖子消息,它也可以正常工作:

map[
fees_payer:[EACHRECEIVER] 
transaction[0].id:[89799058XE923193M] 
verify_sign:[AE6aVMFpE6M3pfCoNe9gPQ4pMixOA9NNUFbTWPTrOik1CqrdIVxc3K3M] 
pay_key:[AP-9DJ400382D973781B] 
transaction[0].id_for_sender_txn:[8MC20151R46812309] 
transaction[0].status:[Completed] 
action_type:[PAY] 
transaction[0].is_primary_receiver:[false] 
sender.useCredentials:[true] 
transaction[0].pending_reason:[NONE] 
transaction[0].amount:[USD 29.00] 
payment_request_date:[Thu May 23 07:46:49 PDT 2013] 
reverse_all_parallel_payments_on_error:[false] 
test_ipn:[1] 
status:[COMPLETED] 
transaction[0].status_for_sender_txn:[Completed] 
transaction[0].paymentType:[SERVICE] 
notify_version:[UNVERSIONED] 
transaction[0].receiver:[mail-facilitator@something.com] 
return_url:[http://www.paypal.com] 
log_default_shipping_address_in_transaction:[false] 
charset:[windows-1252] 
cancel_url:[http://www.paypal.com] 
transaction_type:[Adaptive Payment PAY] 
ipn_notification_url:[http://something.com/ipnhandler/]
]

但是正如您所看到的,这两者之间没有相似之处,而且这里没有任何对我有用的东西。 使用模拟器,我得到了付款人姓名、电子邮件等,但使用沙盒帐户,我想我只会通知自己我收到了付款。 我想知道为什么会发生这种情况,当应用上线时会不会是这样。

【问题讨论】:

  • 所以你不知道吗?有人吗?

标签: ios paypal sandbox paypal-sandbox paypal-ipn


【解决方案1】:

有点晚了,但是是的,由于交易不同,自适应支付发送的 IPN 也不同。例如,由于可以有多个接收器,因此具有单个 receiver_id 字段没有意义。 Paypal 提供所有字段和可能值的概览:https://developer.paypal.com/docs/classic/adaptive-payments/integration-guide/APIPN/

【讨论】:

    猜你喜欢
    • 2015-08-28
    • 2019-07-19
    • 2013-12-06
    • 2017-08-08
    • 2018-08-14
    • 2013-06-26
    • 2015-11-25
    • 2013-05-09
    • 2011-08-07
    相关资源
    最近更新 更多