Skip to content

Instantly share code, notes, and snippets.

import React, {Component} from 'react';
import {Elements, CardElement, ElementsConsumer, injectStripe, StripeProvider} from '@stripe/react-stripe-js';
import {loadStripe} from '@stripe/stripe-js';
import CheckoutForm from "./CheckoutForm";
const stripePromise = loadStripe('SECRET');
const createOptions = () => {
return {
style: {
var models = require('../models/models.js');
var express = require('express');
var router = express.Router();
/* GET users listing. */
const addFunc = (type, body, res) => {
console.log('inside the addFunc and type: ', type, ' and body: ', body)
if(type=='store'){
models.Store.find({name: body.store})
import react, {Component} from 'react';
import styles from '../../styles/molecules/content.module.css';
import buttonStyle from '../../styles/quarks/button.module.css';
import axios from 'axios';
class ContentCRUD extends Component{
state={
var models = require('../models/models.js');
var express = require('express');
var router = express.Router();
/* GET users listing. */
const addFunc = (type, body, res) => {
console.log('inside the addFunc and type: ', type, ' and body: ', body)
if(type=='store'){
models.Store.find({name: body.store})
var models = require('../models/models.js');
var express = require('express');
var router = express.Router();
/* GET users listing. */
const addFunc = (type, body, res) => {
console.log('inside the addFunc and type: ', type, ' and body: ', body)
if(type=='store'){
models.Store.find({name: body.store}, function (err, docs) {