无效的商家-不允许向该商家付款(无效的clientId)

问题描述 投票:1回答:1

我正在执行iOS Paypal支付网关集成,当我添加真实账户API凭据时,我收到类似“Invalid merchant “的错误消息。但这可与Sandbox API凭据配合使用。有人可以帮助我解决此错误吗。

供您参考,请参阅所附的屏幕截图。

我的模拟器屏幕截图:

enter image description here

我的Xcode调试区域中的错误消息:

 {

        "error_description" = "Client Authentication failed";

    }

)
2016-02-01 14:39:36.881 isaaf[3620:1815188] PayPal SDK: Request has failed with error: invalid_client - System error (invalid_client). Please try again later. (401) | PayPal Debug-ID: 49b6d1c71e66a [sandbox, PayPal iOS SDK 2.10.2] | Details: (
     {

            "error_description" = "Client Authentication failed";

        }

我的贝宝帐户屏幕快照:

enter image description here

ios objective-c paypal
1个回答
0
投票

我正在使用离子技术,并且我有相同的错误“不允许向该商家付款(无效的clientId)”。我已经在android上进行了测试,并且可以运行,但错误仅在ios上。

这是我的离子代码:this.payPal.init({PayPalEnvironmentProduction:envProduct,PayPalEnvironmentSandbox:envSandbox})。then(()=> {//环境:PayPalEnvironmentNoNetwork,PayPalEnvironmentSandbox,PayPalEnvironmentProductionthis.payPal.prepareToRender('PayPalEnvironmentSandbox',新的PayPalConfiguration({//仅在PayPal登录后收到“内部服务错误”时才需要!// payPalShippingAddressOption:2 // PayPalShippingAddressOptionPayPal}))。then(()=> {const payment = new PayPalPayment(this.total,this.currency,'Description','sale');this.payPal.renderSinglePaymentUI(payment).then(async(res)=> {console.log(res);},(errclose)=> {console.log(errclose);//错误或渲染对话框关闭但未成功});},(errconf)=> {console.log(errconf);//配置错误});},(errinit)=> {console.log(errinit);//初始化错误,可能不支持PayPal或其他});

我也从https://developer.paypal.com/developer/applications/创建了我的clientid,但仍然无法正常工作>>

© www.soinside.com 2019 - 2024. All rights reserved.