Sha256: ddd3f7384e322a421ba3de104c69c4069151f4980bddf6f794f6e6a12038c797

Contents?: true

Size: 498 Bytes

Versions: 7

Compression:

Stored size: 498 Bytes

Contents

module ActiveMerchant
  module Billing
    module StripeGatewayDecorator
      private

      def headers(options = {})
        headers = super
        headers['User-Agent'] = headers['X-Stripe-Client-User-Agent']
        headers
      end

      def add_customer_data(post, options)
        super
        post[:payment_user_agent] = "SpreeGateway/#{SpreeGateway.version}"
      end
    end
  end
end

ActiveMerchant::Billing::StripeGateway.prepend(ActiveMerchant::Billing::StripeGatewayDecorator)

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
spree_gateway-3.7.5 lib/active_merchant/billing/stripe_gateway_decorator.rb
spree_gateway-3.7.4 lib/active_merchant/billing/stripe_gateway_decorator.rb
spree_gateway-3.7.3 lib/active_merchant/billing/stripe_gateway_decorator.rb
spree_gateway-3.7.2 lib/active_merchant/billing/stripe_gateway_decorator.rb
spree_gateway-3.7.1 lib/active_merchant/billing/stripe_gateway_decorator.rb
spree_gateway-3.7.0 lib/active_merchant/billing/stripe_gateway_decorator.rb
spree_gateway-3.6.7 lib/active_merchant/billing/stripe_gateway_decorator.rb