> ## Documentation Index
> Fetch the complete documentation index at: https://baileys.wiki/llms.txt
> Use this file to discover all available pages before exploring further.

# PaymentLinkButton

> Protobuf class PaymentLinkButton generated from WAProto.

Defined in: [WAProto/index.d.ts:7690](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L7690)

## Implements

* [`IPaymentLinkButton`](/proto-reference/Message/PaymentLinkMetadata/interfaces/IPaymentLinkButton)

## Constructors

### new PaymentLinkButton()

> **new PaymentLinkButton**(`p`?): [`PaymentLinkButton`](/proto-reference/Message/PaymentLinkMetadata/classes/PaymentLinkButton)

Defined in: [WAProto/index.d.ts:7691](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L7691)

#### Parameters

##### p?

[`IPaymentLinkButton`](/proto-reference/Message/PaymentLinkMetadata/interfaces/IPaymentLinkButton)

#### Returns

[`PaymentLinkButton`](/proto-reference/Message/PaymentLinkMetadata/classes/PaymentLinkButton)

## Properties

### displayText?

> `optional` **displayText**: `null` | `string`

Defined in: [WAProto/index.d.ts:7692](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L7692)

#### Implementation of

[`IPaymentLinkButton`](/proto-reference/Message/PaymentLinkMetadata/interfaces/IPaymentLinkButton).[`displayText`](/proto-reference/Message/PaymentLinkMetadata/interfaces/IPaymentLinkButton#displaytext)

## Methods

### create()

> `static` **create**(`properties`?): [`PaymentLinkButton`](/proto-reference/Message/PaymentLinkMetadata/classes/PaymentLinkButton)

Defined in: [WAProto/index.d.ts:7693](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L7693)

#### Parameters

##### properties?

[`IPaymentLinkButton`](/proto-reference/Message/PaymentLinkMetadata/interfaces/IPaymentLinkButton)

#### Returns

[`PaymentLinkButton`](/proto-reference/Message/PaymentLinkMetadata/classes/PaymentLinkButton)

***

### decode()

> `static` **decode**(`r`, `l`?): [`PaymentLinkButton`](/proto-reference/Message/PaymentLinkMetadata/classes/PaymentLinkButton)

Defined in: [WAProto/index.d.ts:7695](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L7695)

#### Parameters

##### r

`Uint8Array`\<`ArrayBufferLike`> | `Reader`

##### l?

`number`

#### Returns

[`PaymentLinkButton`](/proto-reference/Message/PaymentLinkMetadata/classes/PaymentLinkButton)

***

### encode()

> `static` **encode**(`m`, `w`?): `Writer`

Defined in: [WAProto/index.d.ts:7694](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L7694)

#### Parameters

##### m

[`IPaymentLinkButton`](/proto-reference/Message/PaymentLinkMetadata/interfaces/IPaymentLinkButton)

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

> `static` **fromObject**(`d`): [`PaymentLinkButton`](/proto-reference/Message/PaymentLinkMetadata/classes/PaymentLinkButton)

Defined in: [WAProto/index.d.ts:7696](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L7696)

#### Parameters

##### d

#### Returns

[`PaymentLinkButton`](/proto-reference/Message/PaymentLinkMetadata/classes/PaymentLinkButton)

***

### getTypeUrl()

> `static` **getTypeUrl**(`typeUrlPrefix`?): `string`

Defined in: [WAProto/index.d.ts:7699](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L7699)

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

> **toJSON**(): `object`

Defined in: [WAProto/index.d.ts:7698](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L7698)

#### Returns

`object`

***

### toObject()

> `static` **toObject**(`m`, `o`?): `object`

Defined in: [WAProto/index.d.ts:7697](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L7697)

#### Parameters

##### m

[`PaymentLinkButton`](/proto-reference/Message/PaymentLinkMetadata/classes/PaymentLinkButton)

##### o?

`IConversionOptions`

#### Returns

`object`
