2012-06-27 111 views
2

我是新來的paypal API,現在我正在嘗試將貝寶自適應付款與我的網站集成。付款適應性付款returnurl無交易ID

  1. 我在paypal沙箱中創建了測試業務paypal帳戶和用戶帳戶。
  2. 我設置了自動回覆和數據傳輸。

一切工作正常,直到paypal重定向到我的返回url,但我沒有得到tx(Trasaction ID)POST或GET數據。

有人有什麼想法嗎?真的很感激所有的建議。

回答

0

使用貝寶自適應付款api,IPN將帶有一個paykey而不是一個交易ID,因此在您的代碼中使用它。

這裏是真正的IPN JSON格式

{"payment_request_date":"Sun Jun 24 06:12:20 PDT 2012", 
"return_url":"http://redacted/paypal/transactions/3?status=completed", 
"fees_payer":"EACHRECEIVER", 
"ipn_notification_url":"http://redacted/paypal/notifications", 
"sender_email":"redacted", 
"verify_sign":"AFcWxVredacted", 
"test_ipn":"1", 
"transaction[0].id_for_sender_txn":"redacted", 
"transaction[0].receiver":"redacted", 
"cancel_url":"http://redacted/paypal/transactions/3?status=canceled", 
"transaction[0].is_primary_receiver":"false", 
"pay_key":"AP-redacted", 
"action_type":"PAY", 
"transaction[0].id":"redacted", 
"transaction[0].status":"Completed", 
"transaction[0].paymentType":"SERVICE", 
"transaction[0].status_for_sender_txn":"Completed", 
"transaction[0].pending_reason":"NONE", 
"transaction_type":"Adaptive Payment PAY", 
"transaction[0].amount":"USD 1.00", 
"status":"COMPLETED", 
"log_default_shipping_address_in_transaction":"false", 
"charset":"windows-1252", 
"notify_version":"UNVERSIONED", 
"reverse_all_parallel_payments_on_error":"true"}