Paypal支付从iOS设备到web服务(PHP)


Paypal payment from iOS device to web service (PHP)

我正试图从iOS应用程序出售信用,当我付款时,我会将这些信息发送到我的PHP web服务:

payment_request_date  -  Tue Jul 17 05:32:19 PDT 2012
return_url  -  http://www.paypal.com
fees_payer  -  EACHRECEIVER
ipn_notification_url  -  http://www.xxxxxx.com/xxx/xxx/xxxxx/xxxx/xxxx/test.php
verify_sign  -  AgYuiYfIN5owxd-SesPtCf2-3s2qAIwGX.FB6cfxxxxxxxxx
test_ipn  -  1
transaction  -  Array
0  -  EUR 69.00
cancel_url  -  http://www.paypal.com
pay_key  -  AP-1MJ8653xxxxxx
action_type  -  PAY
transaction_type  -  Adaptive Payment PAY
status  -  COMPLETED
log_default_shipping_address_in_transaction  -  false
charset  -  windows-1252
sender_useCredentials  -  true
notify_version  -  UNVERSIONED
reverse_all_parallel_payments_on_error  -  false

如果我想检查付款是否正确,下一步该怎么办?

我一直在查看贝宝的文档,但它非常令人困惑。

提前谢谢。

编辑2012-07-18:

在尝试验证事务时,我的事务数组出现了问题,所以我不得不更改我的脚本,使其像这里的PHP paypal ipn监听器事务数组一样工作,现在一切都正常了!!)

您现在应该验证贝宝的收据,如果成功,则解锁用户的信用。在以下位置查看php的示例代码:

https://www.x.com/developers/PayPal/documentation-tools/code-sample/216623

请注意,苹果的AppStore审查指南不允许此类购买,此类应用程序将被拒绝,不会发布到AppStore。

苹果只允许自己的应用内购买。