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

# CustomPaymentMethod

> Protobuf class CustomPaymentMethod generated from WAProto.

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

## Implements

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

## Constructors

### new CustomPaymentMethod()

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

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

#### Parameters

##### p?

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

#### Returns

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

## Properties

### country

> **country**: `string`

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

#### Implementation of

[`ICustomPaymentMethod`](/proto-reference/SyncActionValue/interfaces/ICustomPaymentMethod).[`country`](/proto-reference/SyncActionValue/interfaces/ICustomPaymentMethod#country)

***

### credentialId

> **credentialId**: `string`

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

#### Implementation of

[`ICustomPaymentMethod`](/proto-reference/SyncActionValue/interfaces/ICustomPaymentMethod).[`credentialId`](/proto-reference/SyncActionValue/interfaces/ICustomPaymentMethod#credentialid)

***

### metadata

> **metadata**: [`ICustomPaymentMethodMetadata`](/proto-reference/SyncActionValue/interfaces/ICustomPaymentMethodMetadata)\[]

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

#### Implementation of

[`ICustomPaymentMethod`](/proto-reference/SyncActionValue/interfaces/ICustomPaymentMethod).[`metadata`](/proto-reference/SyncActionValue/interfaces/ICustomPaymentMethod#metadata)

***

### type

> **type**: `string`

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

#### Implementation of

[`ICustomPaymentMethod`](/proto-reference/SyncActionValue/interfaces/ICustomPaymentMethod).[`type`](/proto-reference/SyncActionValue/interfaces/ICustomPaymentMethod#type)

## Methods

### create()

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

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

#### Parameters

##### properties?

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

#### Returns

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

***

### decode()

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

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

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

***

### encode()

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

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

#### Parameters

##### m

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

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

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

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

#### Parameters

##### d

#### Returns

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

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

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

##### o?

`IConversionOptions`

#### Returns

`object`
