Class: Pin::BankAccounts

Inherits:
Base
  • Object
show all
Defined in:
lib/pin_up/bank_accounts.rb

Overview

This class models Pin’s Bank Accounts API

Instance Attribute Summary

Attributes inherited from Base

#key

Class Method Summary collapse

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.

pinpayments.com/docs/api/bank-accounts



15
16
17
# File 'lib/pin_up/bank_accounts.rb', line 15

def self.create(options)
  build_response(make_request(:post, { url: 'bank_accounts', options: options }))
end