Shopper
in package
This object will be available on the invoice if a shopper signs in on an invoice using his BitPay ID.
See the following blogpost for more information.
Tags
Table of Contents
Properties
- $user : string|null
Methods
- __construct() : mixed
- getUser() : string|null
- Gets user
- setUser() : void
- Sets user
- toArray() : array<string|int, mixed>
- Gets Shopper as array
Properties
$user
protected
string|null
$user
= null
Methods
__construct()
public
__construct() : mixed
getUser()
Gets user
public
getUser() : string|null
If a shopper signs in on the invoice using his BitPay ID, this field will contain the unique ID assigned by BitPay to this shopper.
Return values
string|null —the user
setUser()
Sets user
public
setUser(string $user) : void
If a shopper signs in on the invoice using his BitPay ID, this field will contain the unique ID assigned by BitPay to this shopper.
Parameters
- $user : string
-
the user
toArray()
Gets Shopper as array
public
toArray() : array<string|int, mixed>
Return values
array<string|int, mixed> —shopper as array