[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/externals/balanced-php/src/Balanced/ -> BankAccount.php (summary)

(no description)

File Size: 127 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 classes

BankAccount:: (3 methods):
  init()
  credit()
  verify()

BankAccountVerification:: (1 method):
  confirm()


Class: BankAccount  - X-Ref

Represents an account bank account.

You can create these via Balanced\Marketplace::bank_accounts::create or
Balanced\Marketplace::createBankAccount. Associate them with a buyer or
merchant one creation via Balanced\Marketplace::createBuyer or
Balanced\Marketplace::createMerchant and with an existing buyer or merchant
use Balanced\Account::addBankAccount.

<code>
$marketplace = \Balanced\Marketplace::mine();

$bank_account = $marketplace->bank_accounts->create(array(
'name' => 'name',
'account_number' => '11223344',
'bank_code' => '1313123',
));

$account = $marketplace
->accounts
->query()
->filter(Account::f->email_address->eq('[email protected]'))
->one();
$account->addBankAccount($bank_account->uri);
</code>
init()   X-Ref
No description

credit($amount,$description = null,$meta = null,$appears_on_statement_as = null)   X-Ref
Credit a bank account.

param: int amount Amount to credit in USD pennies.
param: string description Optional description of the credit.
param: string appears_on_statement_as Optional description of the credit as it will appears on the customer's billing statement.
return: \Balanced\Credit

verify()   X-Ref
No description

Class: BankAccountVerification  - X-Ref

Represents an verification for a bank account which is a pre-requisite if
you want to create debits using the associated bank account. The side-effect
of creating a verification is that 2 random amounts will be deposited into
the account which must then be confirmed via the confirm method to ensure
that you have access to the bank account in question.

You can create these via Balanced\Marketplace::bank_accounts::verify.

<code>
$marketplace = \Balanced\Marketplace::mine();

$bank_account = $marketplace->bank_accounts->create(array(
'name' => 'name',
'account_number' => '11223344',
'bank_code' => '1313123',
));

$verification = $bank_account->verify();
</code>
confirm($amount1, $amount2)   X-Ref
No description



Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1