Sha256: 7d715566e53cbda4d9d689e004f5f14ffdf1cc6582ff39fd4df3efdbd66fa93f
Contents?: true
Size: 425 Bytes
Versions: 1
Compression:
Stored size: 425 Bytes
Contents
module KktShoppe module Stripe module PaymentExtensions def stripe_charge return false unless self.method == 'Stripe' @stripe_charge ||= ::Stripe::Charge.retrieve(self.reference, KktShoppe.settings.stripe_api_key) end def transaction_url "https://manage.stripe.com/#{Rails.env.production? ? '/' : 'test/'}payments/#{reference}" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kkt_shoppe-stripe-2.0.0 | lib/kkt_shoppe/stripe/payment_extensions.rb |