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

# PaymentInfoAction

> Protobuf class PaymentInfoAction generated from WAProto.

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

## Implements

* [`IPaymentInfoAction`](/proto-reference/SyncActionValue/interfaces/IPaymentInfoAction)

## Constructors

### new PaymentInfoAction()

> **new PaymentInfoAction**(`p`?): [`PaymentInfoAction`](/proto-reference/SyncActionValue/classes/PaymentInfoAction)

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

#### Parameters

##### p?

[`IPaymentInfoAction`](/proto-reference/SyncActionValue/interfaces/IPaymentInfoAction)

#### Returns

[`PaymentInfoAction`](/proto-reference/SyncActionValue/classes/PaymentInfoAction)

## Properties

### cpi?

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

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

#### Implementation of

[`IPaymentInfoAction`](/proto-reference/SyncActionValue/interfaces/IPaymentInfoAction).[`cpi`](/proto-reference/SyncActionValue/interfaces/IPaymentInfoAction#cpi)

## Methods

### create()

> `static` **create**(`properties`?): [`PaymentInfoAction`](/proto-reference/SyncActionValue/classes/PaymentInfoAction)

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

#### Parameters

##### properties?

[`IPaymentInfoAction`](/proto-reference/SyncActionValue/interfaces/IPaymentInfoAction)

#### Returns

[`PaymentInfoAction`](/proto-reference/SyncActionValue/classes/PaymentInfoAction)

***

### decode()

> `static` **decode**(`r`, `l`?): [`PaymentInfoAction`](/proto-reference/SyncActionValue/classes/PaymentInfoAction)

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

[`PaymentInfoAction`](/proto-reference/SyncActionValue/classes/PaymentInfoAction)

***

### encode()

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

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

#### Parameters

##### m

[`IPaymentInfoAction`](/proto-reference/SyncActionValue/interfaces/IPaymentInfoAction)

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

> `static` **fromObject**(`d`): [`PaymentInfoAction`](/proto-reference/SyncActionValue/classes/PaymentInfoAction)

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

#### Parameters

##### d

#### Returns

[`PaymentInfoAction`](/proto-reference/SyncActionValue/classes/PaymentInfoAction)

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

[`PaymentInfoAction`](/proto-reference/SyncActionValue/classes/PaymentInfoAction)

##### o?

`IConversionOptions`

#### Returns

`object`
