Skip to content

InitPaymentParams

Defined in: src/client.ts:405

Parameters of AmeriaClient.initPayment.

orderId: string | number

Defined in: src/client.ts:407

Your order ID. In the test environment it must be in the range the bank gave you.


amount: number

Defined in: src/client.ts:409

Amount in the payment currency. The test environment only accepts 10 AMD.


optional currency?: Currency

Defined in: src/client.ts:411

Defaults to AMD. Alphabetic codes are converted to ISO numeric codes.


description: string

Defined in: src/client.ts:413

Shown to the payer on the payment page.


backUrl: string

Defined in: src/client.ts:415

Where the bank sends the payer after the payment page.


optional opaque?: string

Defined in: src/client.ts:417

Free text returned to you with the payment.


optional cardHolderId?: string

Defined in: src/client.ts:419

Set to save the card for later AmeriaClient.makeBindingPayment charges.


optional lang?: "en" | "am" | "hy" | "ru"

Defined in: src/client.ts:421

Payment page language. “hy” is sent as “am”, the bank’s code for Armenian.


optional timeout?: number

Defined in: src/client.ts:423

Seconds the payment page stays valid.


optional paymentServiceType?: number

Defined in: src/client.ts:425

Passed to the bank as-is; the bank does not document its values.