Skip to main content

ConfirmPaymentRequest

paymentTokenPayment-PaymentToken (string)required

A payment token generated by monei.js Components or a paymentToken saved after a previous successful payment.

Example: 7cc38b08ff471ccd313ad62b23b9f362b107560b
paymentMethod object

Additional information about the payment method used for this payment.

card object

Additional information about the card used for this payment.

cardholderNameCardholderName (string)

The cardholder's name, as stated in the credit card.

Example: John Doe
cardholderEmailCardholderEmail (string)

The cardholder's email address.

Example: john.doe@monei.com
generatePaymentTokenPayment-GeneratePaymentToken (boolean)

If set to true a permanent token that represents a payment method used in the payment will be generated.

Default value: false
Example: false
customer object
emailstring

The customer's email address.

Example: john.doe@example.com
namestring

The customer's full name or business name.

Example: John Doe
phonestring

The customer's phone number in E.164 format.

Example: null
billingDetails object

Billing information associated with the payment method at the time of the transaction.

namestring

The customer's billing full name.

Example: John Doe
emailstring

The customer's billing email address.

Example: john.doe@example.com
phonestring

The customer's billing phone number in E.164 format.

Example: null
companystring

Billing company name.

Example: null
taxIdstring

Company tax ID.

Example: null
address object
countryCountry (string)

Two-letter country code (ISO 3166-1 alpha-2).

Example: ES
citystring

City, district, suburb, town, or village.

Example: Málaga
line1string

Address line 1 (e.g., street, PO Box, or company name).

Example: Fake Street 123
line2string

Address line 2 (e.g., apartment, suite, unit, or building).

Example: null
zipstring

ZIP or postal code.

Example: 1234
statestring

State, county, province, or region.

Example: Málaga
shippingDetails object

Shipping information associated with the payment.

namestring

The shipping customer's full name.

Example: John Doe
emailstring

The shipping customer's email address.

Example: john.doe@example.com
phonestring

The shipping customer's phone number in E.164 format.

Example: null
companystring

Name of the company where the shipment is going.

Example: null
taxIdstring

Company tax ID.

Example: null
address object
countryCountry (string)

Two-letter country code (ISO 3166-1 alpha-2).

Example: ES
citystring

City, district, suburb, town, or village.

Example: Málaga
line1string

Address line 1 (e.g., street, PO Box, or company name).

Example: Fake Street 123
line2string

Address line 2 (e.g., apartment, suite, unit, or building).

Example: null
zipstring

ZIP or postal code.

Example: 1234
statestring

State, county, province, or region.

Example: Málaga
metadataobject

A set of key-value pairs that you can attach to a resource. This can be useful for storing additional information about the resource in a structured format.

Example: {"systemId":"12345"}
ConfirmPaymentRequest
{
"paymentToken": "7cc38b08ff471ccd313ad62b23b9f362b107560b",
"paymentMethod": {
"card": {
"cardholderName": "John Doe",
"cardholderEmail": "john.doe@monei.com"
}
},
"generatePaymentToken": false,
"customer": {
"email": "john.doe@example.com",
"name": "John Doe",
"phone": null
},
"billingDetails": {
"name": "John Doe",
"email": "john.doe@example.com",
"phone": null,
"company": null,
"taxId": null,
"address": {
"country": "ES",
"city": "Málaga",
"line1": "Fake Street 123",
"line2": null,
"zip": "1234",
"state": "Málaga"
}
},
"shippingDetails": {
"name": "John Doe",
"email": "john.doe@example.com",
"phone": null,
"company": null,
"taxId": null,
"address": {
"country": "ES",
"city": "Málaga",
"line1": "Fake Street 123",
"line2": null,
"zip": "1234",
"state": "Málaga"
}
},
"metadata": {
"systemId": "12345"
}
}