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);
$recipient = $stripe->recipients->getRecipient("recipient_id");
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);
$stripe->recipients->deleteRecipient("recipient_id");
$recipients = $stripe->recipients->listRecipients();