InitPaymentParams
Defined in: src/client.ts:405
Parameters of AmeriaClient.initPayment.
Properties
Section titled “Properties”orderId
Section titled “orderId”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
Section titled “amount”amount:
number
Defined in: src/client.ts:409
Amount in the payment currency. The test environment only accepts 10 AMD.
currency?
Section titled “currency?”
optionalcurrency?:Currency
Defined in: src/client.ts:411
Defaults to AMD. Alphabetic codes are converted to ISO numeric codes.
description
Section titled “description”description:
string
Defined in: src/client.ts:413
Shown to the payer on the payment page.
backUrl
Section titled “backUrl”backUrl:
string
Defined in: src/client.ts:415
Where the bank sends the payer after the payment page.
opaque?
Section titled “opaque?”
optionalopaque?:string
Defined in: src/client.ts:417
Free text returned to you with the payment.
cardHolderId?
Section titled “cardHolderId?”
optionalcardHolderId?:string
Defined in: src/client.ts:419
Set to save the card for later AmeriaClient.makeBindingPayment charges.
optionallang?:"en"|"am"|"hy"|"ru"
Defined in: src/client.ts:421
Payment page language. “hy” is sent as “am”, the bank’s code for Armenian.
timeout?
Section titled “timeout?”
optionaltimeout?:number
Defined in: src/client.ts:423
Seconds the payment page stays valid.
paymentServiceType?
Section titled “paymentServiceType?”
optionalpaymentServiceType?:number
Defined in: src/client.ts:425
Passed to the bank as-is; the bank does not document its values.