BitPay PHP SDK

PayoutRecipientsClient
in package

Handles interactions with the recipients endpoints.

Tags
author

BitPay Integrations integrations@bitpay.com

license

http://www.opensource.org/licenses/mit-license.php MIT

Table of Contents

Properties

$instance  : self|null
$restCli  : RESTcli
$tokenCache  : Tokens

Methods

delete()  : bool
Delete a Payout Recipient.
get()  : PayoutRecipient
Retrieve a BitPay payout recipient by batch id using. The client must have been previously authorized for the payout facade.
getInstance()  : static
Factory method for Payout Recipients Client.
getPayoutRecipients()  : array<string|int, PayoutRecipient>
Retrieve a collection of BitPay Payout Recipients.
requestNotification()  : bool
Notify BitPay Payout Recipient.
submit()  : array<string|int, PayoutRecipients>
Submit BitPay Payout Recipients.
update()  : PayoutRecipient
Update a Payout Recipient.
__construct()  : mixed

Properties

Methods

delete()

Delete a Payout Recipient.

public delete(string $recipientId) : bool
Parameters
$recipientId : string

The recipient id for the recipient to be deleted.

Tags
throws
BitPayApiException
throws
BitPayGenericException
Return values
bool

True if the recipient was successfully deleted, false otherwise.

getPayoutRecipients()

Retrieve a collection of BitPay Payout Recipients.

public getPayoutRecipients([string|null $status = null ][, int|null $limit = null ][, int|null $offset = null ]) : array<string|int, PayoutRecipient>
Parameters
$status : string|null = null

The recipient status you want to query on.

$limit : int|null = null

Maximum results that the query will return (useful for paging results).

$offset : int|null = null

Number of results to offset (ex. skip 10 will give you results starting with the 11th result).

Tags
throws
BitPayApiException
throws
BitPayGenericException
Return values
array<string|int, PayoutRecipient>

requestNotification()

Notify BitPay Payout Recipient.

public requestNotification(string $recipientId) : bool
Parameters
$recipientId : string

The id of the recipient to notify.

Tags
throws
BitPayApiException
throws
BitPayGenericException
Return values
bool

True if the notification was successfully sent, false otherwise.


        
On this page

Search results