Skip to content

Instantly share code, notes, and snippets.

View balibou's full-sized avatar

Benjamin Cherion balibou

View GitHub Profile
// ./imports/startup/server/browser-policy.js
import { BrowserPolicy } from 'meteor/browser-policy-common';
BrowserPolicy.content.allowOriginForAll('https://js.stripe.com/');
BrowserPolicy.content.allowOriginForAll('https://checkout.stripe.com/');
BrowserPolicy.content.allowOriginForAll('https://tmc-post-content.s3.amazonaws.com/');
BrowserPolicy.content.allowOriginForAll('https://q.stripe.com/');
// ./imports/ui/components/plan.jsx
import React from 'react';
import { ListGroupItem } from 'react-bootstrap';
export const Plan = React.createClass({
propTypes: {
plan: React.PropTypes.object.isRequired,
selectedPlan: React.PropTypes.func,
// ./imports/ui/containers/plans-list.js
import { composeWithTracker } from 'react-komposer';
import { PlansList } from '../components/plans-list';
import { Loading } from '../components/loading.js';
import { Meteor } from 'meteor/meteor';
const composer = (params, onData) => {
const plans = Meteor.settings.public.plans;
onData(null, { plans });
{
"public": {
"plans": [
{
"_id": 1,
"name": "Full Torso Apparition Removal",
"amount": {
"cents": 300000,
"usd": "$3,000"
}