简体   繁体   中英

Add stripe in Meteor@1.3

I want to add stripe on my client. the docs say to include it from an external source .

However, I can't quite find the right way to do this. When I put it in the head tag, it gives this error:

Uncaught TypeError: Cannot read property '_iframeBaseUrl' of undefined

Then, if I try to use Stripe.setPublishableKey , Stripe continues to be undefined.

What is the correct way to include stripe?

You should add it via using a Meteor package. Try this one. https://atmospherejs.com/mrgalaxy/stripe

On your terminal, go to your development folder and type the following command:

meteor add mrgalaxy:stripe

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM