Sha256: 3063530d3b52301c475a05304d87db7090f714220beaff3d3c3fad0cc747f272

Contents?: true

Size: 501 Bytes

Versions: 21

Compression:

Stored size: 501 Bytes

Contents

module PaymentComponent
  def fetch_payment_component(amount, card_brands, constituent = nil, options = {})
    card_brands ||= ['amex', 'mc', 'discover', 'visa']
    parameters =
      {
        'Amount': amount,
        'ConstituentId': constituent,
        'CardBrandsToInclude': card_brands,
      }
    options.merge!(basic_auth: @auth, headers: @headers)
    options.merge!(:body => parameters.to_json)
    self.class.post(base_api_endpoint('PaymentGateway/PaymentComponent'), options)
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
tessitura_rest-2.1.6 lib/tessitura_rest/payment_gateway/payment_component.rb
tessitura_rest-2.1.5 lib/tessitura_rest/payment_gateway/payment_component.rb
tessitura_rest-2.1.4 lib/tessitura_rest/payment_gateway/payment_component.rb
tessitura_rest-2.1.3 lib/tessitura_rest/payment_gateway/payment_component.rb
tessitura_rest-2.1.2 lib/tessitura_rest/payment_gateway/payment_component.rb
tessitura_rest-2.1.1 lib/tessitura_rest/payment_gateway/payment_component.rb
tessitura_rest-2.1.0 lib/tessitura_rest/payment_gateway/payment_component.rb
tessitura_rest-2.0.9 lib/tessitura_rest/payment_gateway/payment_component.rb
tessitura_rest-2.0.8 lib/tessitura_rest/payment_gateway/payment_component.rb
tessitura_rest-2.0.7 lib/tessitura_rest/payment_gateway/payment_component.rb
tessitura_rest-2.0.6 lib/tessitura_rest/payment_gateway/payment_component.rb
tessitura_rest-2.0.5 lib/tessitura_rest/payment_gateway/payment_component.rb
tessitura_rest-2.0.4 lib/tessitura_rest/payment_gateway/payment_component.rb
tessitura_rest-2.0.3 lib/tessitura_rest/payment_gateway/payment_component.rb
tessitura_rest-2.0.2 lib/tessitura_rest/payment_gateway/payment_component.rb
tessitura_rest-2.0.1 lib/tessitura_rest/payment_gateway/payment_component.rb
tessitura_rest-1.5.3.1 lib/tessitura_rest/payment_gateway/payment_component.rb
tessitura_rest-1.5.3 lib/tessitura_rest/payment_gateway/payment_component.rb
tessitura_rest-1.5.2 lib/tessitura_rest/payment_gateway/payment_component.rb
tessitura_rest-2.0.0 lib/tessitura_rest/payment_gateway/payment_component.rb