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