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