Slide 11
Slide 11 text
token = params[:stripeToken]
begin
charge = Stripe::Charge.create(
amount: 1000,
currency: "usd",
source: token,
description: "Example charge")
rescue Stripe::CardError => e
# The card has been declined
end
Noel Rappin, Money Makes Your App Go Round, WindyCityRails 2016. http://www.noelrappin.com | http://www.tablexi.com | @noelrap