【发布时间】:2015-07-02 10:38:59
【问题描述】:
我需要验证使用移动设备完成的贝宝付款,但它总是返回 java.lang.NullPointerException 错误
C#代码
// Get a reference to the config
var config = ConfigManager.Instance.GetProperties();
// Use OAuthTokenCredential to request an access token from PayPal
var accessToken = new OAuthTokenCredential(config).GetAccessToken();
var apiContext = new APIContext(accessToken);
var PayID = "PAY-6PU626847B294848Y6KEWXHY";
var payment = Payment.Get(apiContext, PayID);
远程服务器返回错误:(404) Not Found.
【问题讨论】:
标签: c# asp.net-mvc paypal