Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Create a Customer:
- customer = Stripe::Customer.create(
- :email => user.email,
- :source => token,
- )
- # Charge the Customer instead of the card:
- charge = Stripe::Charge.create(
- :amount => price,
- :currency => "usd",
- :description => customer_message,
- :customer => customer.id,
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement