ClientId
and API key (get a Sandbox API key for free)Id
of the user as the UserId
.
You must also define the currency and type of the card at this stage.
preregistrationData
defined below.
ClientId
and select your environment (Sandbox or Production).
cardInfoObject
) entered on the payment page (see Testing - Payment methods for test cards)preregistrationData
) previously returned by the Mangopay APIProperty | Type | Description |
---|---|---|
cardNumber | string | The card number to be tokenized, without any separators. |
cardExpirationDate | string (Format: “MMYY”) | The expiration date of the card. |
cardCvx | string | The card verification code (on the back of the card, usually 3 digits). |
Property | Type | Description |
---|---|---|
Id | string | The unique identifier of the Card Registration object. |
CardRegistrationURL | string | The URL to which the card details are sent to be tokenized. |
AccessKey | string | The secure value used when tokenizing the card. |
PreregistrationData | string | A specific value passed to the CardRegistrationURL . |
errors | MgpTypedError | A generic type describing the error report that is returned in case of an error. |
CardId
that can be used for payments.
Property | Type | Description |
---|---|---|
AccessKey | string | The secure value used when tokenizing the card. |
CardId | string | The unique identifier of the Card object. |
CardRegistrationURL | string | The URL to which the card details are sent to be tokenized. |
CardType | string | The type of the card. |
CreationDate | timestamp | The date and time at which the object was created. |
Currency | string | The currency of the card. |
Id | string | The unique identifier of the Card Registration object. |
PreregistrationData | string | A specific value passed to the CardRegistrationURL . |
RegistrationData | string | The string returned by the tokenization server after tokenizing the card. |
ResultCode | string | The code indicating the result of the operation. This information is mostly used to handle errors or for filtering purposes. |
ResultMessage | string | The explanation of the result code. |
Status | string | The status of the card registration:
|
Tag | string | Custom data that can be added to this object.In the case of the Card Registration, this parameter can be used to facilitate the link between the User object and its equivalent on your platform for instance. This value will be inherited by the Card object Tag parameter and will not be editable. |
UserId | string | The unique identifier of the user the card belongs to. |
errors` | MgpTypedError | A generic type describing the error report that is returned in case of an error. |
CardId
) for pay-ins with the following objects: