paypal验证付款

时间:2012-03-26 14:04:16

标签: android paypal paypal-ipn paypal-sandbox

我正在通过Sandbox测试PayPal付款。那我该怎么做:

  1. 使用SDK AppID从我的Android设备付款:“APP-80W284485P519543T”。
  2. RESULT_OK中接收applicationResult,并通过IPN服务在服务器端收到回复。
  3. 现在我正在接受来自IPN的所有回复并将其发送到paypal验证沙盒服务器以验证付款。它cat return(VERIFIED或INVALID)。
  4. 但问题是它返回INVALID。那么什么是问题呢?我做错了什么?感谢。

    这是我发送验证的内容:

      

    https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_notify-validate&payment_request_date=Mon+Mar+26+02%3A37%3A10+PDT+2012&fees_payer=EACHRECEIVER&transaction [0] .is_primary_receiver =假安培;备忘录=购买+ 1500 +硬币&安培; TRANSACTION_TYPE =自适应+付款+ PAY&安培; verify_sign = AWimjEpfvS2eR6IgBwHtiwM0rMDUA.b2twU2ADjkAY-kg5szeluxcqKb&安培; log_default_shipping_address_in_transaction =假安培; pay_key = AP-2YR77828AV574621G&安培;交易[0] .amount = USD + 1.99&安培; reverse_all_parallel_payments_on_error =真安培; ipn_notification_url = HTTP%3A%2F%2Fdev-vs.upiter.com%2Fvspayment%2Fproviders%2Fvs%2Ffb%2Fpaypalcallback&安培; ACTION_TYPE = CREATE&安培; notify_version =未版本控制&安培;交易[0] .status_for_sender_txn =待定&安培;的test_ipn = 1&安培; cancel_url = HTTPS%3A%2F%2Fwww.paypal.com&安培;交易[0] .pending_reason =单侧&安培;状态=完成&安培;字符集=窗口1252&安培;交易[0] .paymentType =商品&安培; request_body =安培; request_url = HTTP%3A%2F%2Fdev-vs-mobile.stagika.com%2Fvspayment%2Fprovid ERS%2Fvs%2Ffb%2Fpaypalcallback&安培; return_url = HTTPS%3A%2F%2Fwww.paypal.com&安培;交易[0]。接收机= a.merchant1.kv%40gmail.com&安培; REQUEST_METHOD = POST&安培;交易[0] = .id_for_sender_txn 0X355330VH030952T&安培; sender.useCredentials =真

1 个答案:

答案 0 :(得分:2)

来自Paypal的这是一个糟糕的回调(IPN)。它包括错误的参数。 我认为Android的setIpnUrl(String IPNURL)存在一些问题。

尝试使用Profile in the seller Accaunt中设置的静态IPN网址。它已经开始为我工作了!