简体   繁体   English

Ionic Native paypal,系统错误,请稍后登录时重试

[英]Ionic Native paypal, System Error, please try again later when logging in

I have tried implementing the Ionic paypal native plugin.我已经尝试实现 Ionic paypal 本机插件。 I installed the plugin using:我使用以下方法安装了插件:

ionic cordova plugin add com.paypal.cordova.mobilesdk
npm install @ionic-native/paypal

The first day that I tried to use it, it worked perfectly fine.我尝试使用它的第一天,它工作得非常好。 However after a day or two when I gave it to one of my teammates for testing, while trying to log into paypal (sandbox account), it keeps saying "Login Failed, System error. Please try again later".但是一两天后,当我将它交给我的一个队友进行测试时,在尝试登录 paypal(沙盒帐户)时,它一直说“登录失败,系统错误。请稍后再试”。 I have even tried the code snippet that is presented on the ionic documentation page, it gives me the same error.我什至尝试了离子文档页面上显示的代码片段,它给了我同样的错误。

import { PayPal, PayPalPayment, PayPalConfiguration } from '@ionic-native/paypal/ngx';

constructor(private payPal: PayPal) { }

...


this.payPal.init({
  PayPalEnvironmentProduction: 'YOUR_PRODUCTION_CLIENT_ID',
  PayPalEnvironmentSandbox: 'YOUR_SANDBOX_CLIENT_ID'
}).then(() => {
  // Environments: PayPalEnvironmentNoNetwork, PayPalEnvironmentSandbox, PayPalEnvironmentProduction
  this.payPal.prepareToRender('PayPalEnvironmentSandbox', new PayPalConfiguration({
    // Only needed if you get an "Internal Service Error" after PayPal login!
    //payPalShippingAddressOption: 2 // PayPalShippingAddressOptionPayPal
  })).then(() => {
    let payment = new PayPalPayment('3.33', 'USD', 'Description', 'sale');
    this.payPal.renderSinglePaymentUI(payment).then(() => {
      // Successfully paid

      // Example sandbox response
      //
      // {
      //   "client": {
      //     "environment": "sandbox",
      //     "product_name": "PayPal iOS SDK",
      //     "paypal_sdk_version": "2.16.0",
      //     "platform": "iOS"
      //   },
      //   "response_type": "payment",
      //   "response": {
      //     "id": "PAY-1AB23456CD789012EF34GHIJ",
      //     "state": "approved",
      //     "create_time": "2016-10-03T13:33:33Z",
      //     "intent": "sale"
      //   }
      // }
    }, () => {
      // Error or render dialog closed without being successful
    });
  }, () => {
    // Error in configuration
  });
}, () => {
  // Error in initialization, maybe PayPal isn't supported or something else
});

I tried different configurations, I also tried different developer account but it still gives me the same error.我尝试了不同的配置,我也尝试了不同的开发者帐户,但它仍然给我同样的错误。 I apologize if this explanation is not so good since this is my first post, but please can you aid me in solving this issue?如果这个解释不是很好,我很抱歉,因为这是我的第一篇文章,但请你能帮我解决这个问题吗?

@ionic-native/paypal @ionic-native/贝宝

The old mobile SDK plugin used by this has been deprecated for years and is end of life as of precisely today (Dec 7th).其使用的旧移动 SDK 插件已被弃用多年,并且截至今天(12 月 7 日)已终止使用。 This integration cannot be used, it is completely sunset.这个集成不能用了,完全日落了。


In switching over to a current supported web-based PayPal Checkout integration, ensure you open it in a Safari View Controller or Chrome Custom Tab.在切换到当前支持的基于 Web 的 PayPal Checkout集成时,请确保在 Safari 查看 Controller 或 Chrome 自定义选项卡中打开它 (WKWebView or similar cannot be used) (不能使用 WKWebView 或类似的)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 当我尝试通过whatsapp共享链接时,收到消息**共享失败,请重试** - getting message **sharing failed please try again** in ionic app when I try to share link via whatsapp PayPal。一些必需的信息丢失或不正确。 请更正以下字段并重试 - PayPal. Some required information is missing or incorrect. Please correct the fields below and try again 当Api返回响应时,如何以角度显示“登录失败。请重试”消息? - How to show “Login In failed.Please try again” message in angular when Api returns the response? 在Ionic期间遇到错误,尝试启动新应用程序(Ionic版本4.8.0)时无法正常工作 - Getting error during Ionic, Its not working when try to start new app (ionic version 4.8.0) 有什么方法可以在离子应用程序中实现再试一次按钮吗? - Is there any way to implement try again button into ionic app? 角度npm ERR! 请尝试以root / Administrator窗口再次运行此命令10 - Angular npm ERR! Please try running this command again as root/Administrator windows 10 离子插件错误:运行使用本机地理围栏 API 的应用程序时 plugin_not_installed - Ionic plugin error: plugin_not_installed when running application that uses native geofence API Andoid Ionic cordova @ionic-native/相机错误未修复 - Andoid Ionic cordova @ionic-native/camera error doesnt fix 离子POST:本机HTTP返回ERROR null - Ionic POST: native HTTP returns ERROR null 离子原生谷歌加登录中的错误10 - Error 10 in ionic native google plus login
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM