Menu

## Shopper
in package

Shopper.php : 20

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

author

  BitPay Integrations integrations@bitpay.com

license

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

see
  https://bitpay.readme.io/reference/invoices

  REST API Invoices

### 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

Shopper.php : 22
`protected string|null $user = null`

### Methods

#### __construct()

Shopper.php : 24
`public __construct() : mixed`

#### getUser()

Shopper.php : 36

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()

Shopper.php : 49

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()

Shopper.php : 59

Gets Shopper as array

`public toArray() : array<string|int, mixed>`

##### Return values

array<string|int, mixed> —

shopper as array

## Search results