Class: Pin::BankAccounts
Overview
This class models Pin’s Bank Accounts API
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
-
.create(options) ⇒ Object
Creates a bank account token and returns its details.
Methods inherited from Base
#base_uri, build_collection_response, build_response, #initialize, make_request
Constructor Details
This class inherits a constructor from Pin::Base
Class Method Details
.create(options) ⇒ Object
Creates a bank account token and returns its details.
The bank account API allows you to securely store bank account details in exchange for a bank account token. This token can then be used to create a recipient using the recipients API.
A bank account token can only be used once to create a recipient. The token automatically expires after 1 month if it hasn’t been used.
15 16 17 |
# File 'lib/pin_up/bank_accounts.rb', line 15 def self.create() build_response(make_request(:post, { url: 'bank_accounts', options: })) end |