我正在尝试将 PayPal Here swipers 集成到 Xamarin Android 应用程序中。一切都很好,直到我尝试将我的凭据提供给 SDK。具体来说,包含调用的行PayPalHereSDK.SetCredentials
public void InitializeSdk( Context context, string serverName, string accessToken, string refreshUrl, string expires, IPayPalHereSdkWrapperCallback listener ) {
PayPalHereSDK.Init( context, serverName );
PayPalHereSDK.RegisterAuthenticationListener( this );
PayPalHereSDK.CardReaderManager.RegisterCardReaderConnectionListener( this );
if ( !string.IsNullOrEmpty( accessToken ) ) {
var credentials = new OAuthCredentials( accessToken, refreshUrl, expires );
PayPalHereSDK.SetCredentials( credentials, new SetAccessTokenResponseHandler( listener ) );
}
}
我的SetAccessTokenResponseHandler
类实现了Com.PayPal.Merchant.Sdk.Domain.IDefaultResponseHandler
接口。如上所述,OnError
函数在调用PayPalHereSDK.SetCredentials
函数时被调用。我收到错误代码“BadConfiguration”和消息“无法继续使用此商家帐户。准备就绪”
我在谷歌上下搜索过,我相信,搜索得非常彻底。我似乎无法克服错误,所以我正在寻求帮助!