Payee

See https://developer.paypal.com/docs/api/orders/v2/#payee.

Methods

Payee::__construct()

Creates a payee object using constructor.

Signature

public function __construct(string $email_address, string $merchant_id);

Example

$payee = new Payee('payee@paypal.com', 'YP568Y95AVSDY');

Payee::create()

Creates a payee object.

Signature

public static function create(string $email_address, string $merchant_id): Payee;

Example

$payee = Payee::create('payee@paypal.com', 'YP568Y95AVSDY');

Payee::setEmailAddress()

Sets an email address on a payee object.

Signature

Example

Payee::getEmailAddress()

Gets a payee email address.

Signature

Example

Payee::setMerchantId()

Sets a merchant id on a payee object.

Signature

Example

Payee::getMerchantId()

Gets a payee merchant id.

Signature

Example

Last updated

Was this helpful?