2014-09-10 30 views
2

我正在爲iPad版本7.x開發iOS應用程序。我們需要通過應用程序執行PayPal交易。我們加入了PayPal iOS SDK並引用他們的示例代碼來執行交易。通過PayPal iOS SDK進行的PayPal實時交易中的問題

示例代碼放在here

  1. 有足夠的資金在客戶賬戶
  2. 同時,我們有正確的客戶ID和地方的資金需要傳輸密鑰。
  3. 收款人和付款人都有真實賬戶。
  4. 通過他們的沙盒賬戶交易是sucess

在調試代碼,我們發現,我們能夠創建付款。但是,我們在付款即將獲得批准時出錯。

下面是錯誤的詳細信息

PayPal SDK: Request has failed with error: UNKNOWN_ERROR - System error (UNKNOWN_ERROR). Please try again later. (400) | PayPal Debug-ID: 3e8087cbf6bd1 [live, PayPal iOS SDK 2.1.2] 

有沒有什麼具體配置,我們需要在我們的代碼包括製造現場交易? 或者是否需要在其中一個帳戶中完成特定配置? 還是有遺漏貝寶iOS SDK提供的示例代碼?請指教。

回答

0

我們討論了這個問題貝寶的技術支持團隊,這裏是FIX:

We’ve found the issue is actually not with buyer account, some flag was not updated for merchant account "[email protected]」 due to a bug which had in our system at the time it was created. 

The fastest workaround to resolve this would be if you could please add another email to same account "[email protected]」. 

Steps to add another email address to "[email protected]」 : 
Please login to the PayPal account. 
Click on Profile—> Email address. Add another email address. 

這解決了我們的問題。

1

問題是您沒有使用正確的ClientID。您使用的客戶端ID與yoiur開發人員門戶的活動應用程序沒有關聯。要更正此問題,請進入developer portal,並使用來自其他「有效」應用的其他客戶端ID或創建新應用。