[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

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

(no description)

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

Defines 1 class

Merchant:: (2 methods):
  init()
  me()


Class: Merchant  - X-Ref

Represents a merchant identity.

These are optionally created and associated with an account via
\Balanced\Marketplace::createMerchant which establishes a merchant account
on a marketplace.

In some cases a merchant may need to be redirected to create a identity (e.g. the
information provided cannot be verified, more information is needed, etc). That
redirected signup results in a merchant_uri which is then associated with an
account on the marketplace via \Balanced\Marketplace::createMerchant.

init()   X-Ref
No description

me()   X-Ref
Return the merchant identity associated with the current
Balanced\Settings::$api_key. If you are not authenticated (i.e.
) then Balanced\Exceptions\NoResult
will be thrown.

<code>
$merchant = \Balanced\Merchant::me();
$owner_account = \Balanced\Marketplace::mine()->owner_account;
assert($merchant->id == $owner_account->merchant->id);
</code>

return: \Balanced\Merchant



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