Sha256: c6e271bf140eae21635f3f3fd54e05e13c5d24474857fc057f60df4762d6fb70
Contents?: true
Size: 702 Bytes
Versions: 1
Compression:
Stored size: 702 Bytes
Contents
# frozen_string_literal: true module WellsFargo module Endpoints class ACH < Base SCOPE = 'ACH-Payments ACH-Payments-Status' def create_payment(payload) client.execute( :post, 'ach/v1/payments', headers: headers.merge('Content-Type' => 'application/json'), body: payload ) end def check_status(payment_id) client.execute( :get, "ach/v1/payments/#{payment_id}", headers: headers ) end private def headers { 'Authorization' => "Bearer #{client.token.generate(SCOPE)}", 'request-id' => SecureRandom.uuid } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wells_fargo-api-0.1.0 | lib/wells_fargo/endpoints/ach.rb |