我正在编写一个angular6电子商务应用程序,并试图在其中实现paypal express结账。
我在我的商业账户中创建了一个沙箱,并创建了一个客户端访问令牌,用于它。
我试着用这两种方法
ngx-paypal
模块来自
https://github.com/Enngage/ngx-paypal
我也试着自己用网站上的教程来实现它
http://tphangout.com/angular-5-paypal-express-checkout/
它们都提供了相同的结果。
PayPal express结帐弹出窗口出现,但“登录PayPal”按钮不起作用。当我点击它时,什么也没发生。
我试图查看chrome开发者控制台,我看到的是:
Failed to load resource: the server responded with a status of 400 (Bad Request)
对于url
https://www.sandbox.paypal.com/webapps/hermes/api/batch/setbuyer
有什么想法吗?
谢谢!:)