juryd.md 2.3 KB

Juryd

Build Structure

Testing

Front End

API

Mobile/Desktop

Database

Payment Processing

  • Node.js library for the Stripe API
  • Stripe - Docs

    • Stripe - Saving credit card details for later

      # get the credit card details submitted by the form or app
      token = params[:stripeToken]
      
      # create a Customer
      customer = Stripe::Customer.create(
      card: token,
      description: 'description for payinguser@example.com',
      email: 'payinguser@example.com'
      )
      
      # charge the Customer instead of the card
      Stripe::Charge.create(
      amount: 1000, # in cents
      currency: 'usd',
      customer: customer.id
      )
      
      # save the customer ID in your database so you can use it later
      save_stripe_customer_id(user, customer.id)
      
      # later
      customer_id = get_stripe_customer_id(user)
      
      Stripe::Charge.create(
      amount: 1500, # $15.00 this time
      currency: 'usd',
      customer: customer_id
      )
      

Legal

Conceptual

Other

https://en.wikipedia.org/wiki/Pay_to_play

Related Articles

Celery Joins Forces With Indiegogo
Can the web save the press from oblivion?