Adding 3rd Party Scripts to Meteor App

I’m trying to add a payment service to my Meteor app. It requires the following…

Header Script

<script src="https://js.chargebee.com/v2/chargebee.js" data-cb-site="my-website" ></script>

Link

<a href="javascript:void(0)" data-cb-type="checkout" data-cb-plan-id="monthly-plan" >subscribe</a>

Something very easy to do with plain old HTML; not so much with Meteor.

I tried adding the script in the <head> of index.html:

<head>
  <script src="https://js.chargebee.com/v2/chargebee.js" data-cb-site="edabit-test"></script>
</head>

<body>
  <div id="App"></div>
</body>

Any standard way of doing this with Meteor?

Hi,
I think you should go the NPM way with official chargebee npm package the documentation does not look that bad

2 Likes

As far as I can tell, the chargebee NPM package doesn’t handle payments. I just want to trigger their hosted popup form.

Question, are you using Blaze or React?

I’m using React as my view layer.

Bump. Anyone here know how to accept payments with Chargebee in a Meteor app? Should I just hire someone on UpWork to do this?