lib/pay/stripe.rb in pay-6.7.1 vs lib/pay/stripe.rb in pay-6.7.2

- old
+ new

@@ -40,10 +40,10 @@ Pay::Engine.version_matches?(required: "~> 8", current: ::Stripe::VERSION) || (raise "[Pay] stripe gem must be version ~> 8") end def self.setup ::Stripe.api_key = private_key - ::Stripe.api_version = "2022-11-15" + ::Stripe.api_version ||= "2022-11-15" # Used by Stripe to identify Pay for support ::Stripe.set_app_info("PayRails", partner_id: "pp_partner_IqhY0UExnJYLxg", version: Pay::VERSION, url: "https://github.com/pay-rails/pay") # Automatically retry requests that fail