Recipients

Create a recipient

The createRecipient() method takes a CreateRecipientRequest object as its only parameter.

$request = $stripe->recipients->createRecipientRequest("Robert Loblaw", "individual")
    ->setBankAccount("US", "110000000", "000123456789");
$stripe->recipients->createRecipient($request);

Retrieve a recipient

$recipient = $stripe->recipients->getRecipient("recipient_id");

Update a recipient

The updateRecipient() method takes an UpdateRecipientRequest object as its second parameter.

$request = $stripe->recipients->updateRecipientRequest()->setEmail("bob@loblaw.com");
$stripe->recipients->updateRecipient("recipient_id", $request);

Delete a recipient

$stripe->recipients->deleteRecipient("recipient_id");

List recipients

$recipients = $stripe->recipients->listRecipients();