David Kimura PRO
Joined 7/18/2015
Drifting Ruby Owner
David Kimura PRO said over 5 years ago on Payment Gateway Basics with Stripe :
This needs to be changed. You cannot scope subscriptions on the customer anymore.
subscription = customer.subscriptions.create(source: params[:stripeToken], plan: 'starter')

to something like this. I haven't tested this, but this is likely the basic flow where you attach the source to the customer (i.e., the payment method) and then you create the subscription.

customer.update({ default_source: params[:stripeToken] })
Stripe::Subscription.create({
  customer: customer,
  plan: 'starter'
})



David Kimura PRO said over 5 years ago on Payment Gateway Basics with Stripe :
That's strange. The docs, https://stripe.com/docs/api/customers/update?lang=ruby , show the customer object using the update method.



David Kimura PRO said over 5 years ago on Payment Gateway Basics with Stripe :
  Maybe try

customer.default_source = params[:stripeToken]
customer.save

David Kimura PRO said over 5 years ago on Creating and Reading QR Codes :
  It was a custom solution. I have a gitlab server which hosts the files and this site communicates to the gitlab server via their open API. I basically then list out the files and folders and display whichever file that was clicked on.

David Kimura PRO said over 5 years ago on Booking System :
   Pretty interesting idea. Something similar to what Calendly does I assume? The last bit, I'm not sure I understand what you mean by consolidate their appointment.
If Possible Users will be required to pay a small account of money to consolidate their appointment