2015-02-10 104 views
2

的didCompletePayment委託方法證實了我的付款狀態被批准:批准的PayPal SDK付款不上沙盒儀表板出現

CurrencyCode: USD 
Amount: 1.95 
Short Description: avocado 
Intent: sale 
Processable: Already processed 
Display: $1.95 
Confirmation: { 
    client =  { 
     environment = mock; 
     "paypal_sdk_version" = "2.8.3"; 
     platform = iOS; 
     "product_name" = "PayPal iOS SDK"; 
    }; 
    response =  { 
     "create_time" = "2015-02-10T16:17:43Z"; 
     id = "PAY-NONETWORKPAYIDEXAMPLE123"; 
     intent = sale; 
     state = approved; 
    }; 
    "response_type" = payment; 
} 
Details: (null) 
Shipping Address: (null) 
Invoice Number: (null) 
Custom: (null) 
Soft Descriptor: (null) 
BN code: (null) 

然而,當我去Developer.PayPal.com,沒有顯示我的儀表板在我的交易頁面上。

任何想法,我可能會失蹤或做錯?此時付款是否已完全驗證,還是必須在服務器上執行更多邏輯以驗證它?在創建付款並在委託回調中獲取其信息之前,我已經獲得了持票訪問令牌,但我不確定我應該如何處理此令牌。

感謝,

回答

7

好吧,我意識到我在做什麼錯。

我以前使用的:

 PayPalMobile.preconnectWithEnvironment(PayPalEnvironmentNoNetwork) 

但要使用需要:

 PayPalMobile.preconnectWithEnvironment(PayPalEnvironmentSandbox) 

希望這可以幫助其他人使用貝寶SDK適用於iOS。