在中添加条纹Meteor@1.3.

Add stripe in Meteor@1.3

本文关键字:Meteor@1 添加      更新时间:2023-09-29

我想在我的客户端上添加条纹。文档中说要从外部来源包含它。

然而,我找不到正确的方法来做这件事。当我把它放在head标签中时,它会给出以下错误:

Uncaught TypeError: Cannot read property '_iframeBaseUrl' of undefined

然后,如果我尝试使用Stripe.setPublishableKey,那么Stripe仍然是未定义的。

包含条纹的正确方式是什么?

您应该使用Meteor包添加它。试试这个。https://atmospherejs.com/mrgalaxy/stripe

在您的终端上,转到您的开发文件夹并键入以下命令:

meteor add mrgalaxy:stripe