class WellsFargo::Endpoints::ACH
Constants
- SCOPE
Public Instance Methods
check_status(payment_id)
click to toggle source
# File lib/wells_fargo/endpoints/ach.rb, line 16 def check_status(payment_id) client.execute( :get, "ach/v1/payments/#{payment_id}", headers: headers ) end
create_payment(payload)
click to toggle source
# File lib/wells_fargo/endpoints/ach.rb, line 8 def create_payment(payload) client.execute( :post, 'ach/v1/payments', headers: headers.merge('Content-Type' => 'application/json'), body: payload ) end
Private Instance Methods
headers()
click to toggle source
# File lib/wells_fargo/endpoints/ach.rb, line 25 def headers { 'Authorization' => "Bearer #{client.token.generate(SCOPE)}", 'request-id' => SecureRandom.uuid } end