贝宝弹出窗口在结帐时消失
我将在我的网站上创建一个PayPal付款网关,它可以与Sandbox帐户一起使用,但是当我转向实时模式时,它的结局并不好。 PayPal结帐窗口弹出并立即在现场模式下消失,甚至在该窗口中显示任何内容。我在实时模式下更改的唯一一件事是我替换“ API-M.Sandbox”的帖子URL。用“ API-M”。在这个“ paypal.com”背后
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您还需要使用开发人员仪表板 apps and recortentials ,并且JS SDK加载后必须具有其
src
的相同实时客户端ID。顺便说一句(因为这是为了捐赠)考虑更简单的捐赠SDK 它不使用API呼叫,并为此量身定制付款经验。
如果由于某种原因确实坚持使用主JS SDK,则
样式:{label:“ donate”}
可以在按钮初始化中使用,如果需要,可以将该文本添加到按钮中。You also need to use a live client id an secret from the developer dashboard Apps and Credentials, and the JS SDK must have the same live client id for its
src
when loaded.As an aside (since this is for donations) consider the simpler donate SDK which does not use API calls, and offers a payment experience more tailored for this.
If you do stick with the main JS SDK for some reason,
style: { label: "donate" }
can be used in the button initialization to add that text to the button, if desired.