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