2. Class mapping
Classes that must be mapped in your HTML code.
Once the class is mapped to it's given field, the script is able to retrieve the value contained in the field and submit it to compose the authentication request.
Warning
- The higher amount of fields parametrized, the higher is the chance of having a authentication without challenge, since the issuer will have more data for the risk analysis.
- The # character indicated in the field must be replaced by the number representing the item index. Example: bpmpi_item_1_productName' represents the first item of the cart.
Required field for AmexAmex requires the parameterization of
bpmpi_brand_establishment_codein Merchant Defined Data.
Access and Authentication Type
Field | Description | Type/Size | Required |
|---|---|---|---|
| Boolean indicating whether or not the transaction is submitted to the authentication process. | Boolean: | Yes |
| Boolean indicating whether the card transaction will be submitted in "notification only" mode. In this mode, the authentication process will not be triggered, however, the data will be submitted to the flag. Valid only for Mastercard and Visa | Boolean: | Not required if 3DS Full / Required if 3DS Data Only |
| Boolean that indicates if ignore or not the challenge. If the challenge is ignored, the liability will keep with the merchant. | Boolean: | Recommended |
| Token generated by Access Token API (step 1) | Alphanumeric (variable) | Yes |
Order
Field | Description | Type/Size | Required |
|---|---|---|---|
| Merchant order number | Alphanumeric must be mapped in | Yes |
| Currency code | Fixed "BRL" | Yes |
| Total transaction amount (cents) | Numeric that must be mappe | Yes |
| Number of Installments | Numeric that must be mapp | Yes |
| Card type to be authenticated. If the card has both functions, it is necessary to specify the transaction type. | Credit - Credit Card | Yes |
| Card number | Numeric that must be mappe | Yes |
| Card expiration month | Numeric that must be mapp | Yes |
| Card expiration year | Numeric that must be mapp | Yes |
| Card alias | Alphanumeric must be mapped in y | Recommended if there is a card alias. |
| Indicates whether it is a standard customer card in the e-commerce | Boolean | Recommended |
| End date of recurrency | Text (AAAA-MM-DD) | Recommended, if recurrent transaction |
| Frequency of recurrency | Number | Recommended, if recurrent transaction |
| Date of first transaction that originated the recurrency | Text (AAAA-MM-DD) | Recommended, if recurrent transaction |
Order description
Field | Description | Type/Size | Required |
|---|---|---|---|
| Indicates whether it is an order that generates future recurrences | Boolean | Recommended, if recurrent transaction |
| Product Type |
| Yes |
| Number of orders placed by same customer in the last 24 hours | Numeric that must be mapp | No |
| Number of orders placed by same customer in the last 6 months | Numeric that must be mapp | Recommended |
| Number of orders placed by same customer in the last year | Numeric that must be mapp | Recommended |
| Number of orders placed with the same card in the last 24 hours | Numeric that must be mapp | Recommended |
| Indicates whether the shopper accepted to receive marketing offers | Boolean | Recommended |
| Identifies the origin of the marketing campaign | Alphanumeric must be mapped in | Recommended |
| Identifies the channel from which the transaction originates | M: MOTO | Recommended |
| Address of the e-commerce's web site | Alphanumeric must be mapped in y Example: | Yes |
To use 3DS authentication in a sandbox environment, use "https://localhost" on the
bpmpi_merchant_urlfield.
Prepaid cards
| Field | Description | Type/Size | Required |
|---|---|---|---|
bpmpi_giftcard_amount | The total purchase amount for prepaid gift cards in rounded value | Numeric [max 15 positions]. Example: R$125,54 = 12554 | Recommended if the card being used is prepaid |
bpmpi_giftcard_currency | Transaction currency code paid with prepaid type card | Fixed "BRL" | Recommended if the card being used is prepaid |
Billing address
Field | Description | Type/Size | Required |
|---|---|---|---|
| Identifies the CPF/CNPJ of customer | Numeric that must be mapped | No |
| Billing address contact name | Alphanumeric must be mapped in y | Recommended |
| Billing address phone number | Numeric that must be mappe, in the format: 5511999999999 | Recommended |
| Billing address contact email | Alphanumeric must be mapped in y, in the format | Recommended |
| Street address and billing address number | Alphanumeric must be mapped in | Recommended |
| Neighborhood and complement billing address | Alphanumeric must be mapped in | Recommended |
| Billing address city | Alphanumeric must be mapped in | Recommended |
| Billing address state.
| Text es that must | Recommended |
| Billing address zip code | Alphanumeric must be mapped in, in the format: 99999999 | Recommended |
| Billing address country | Text es that must e.g., BR | Recommended |
Delivery address
Field | Description | Type/Size | Required |
|---|---|---|---|
| Indicates it is the same address provided on the billing address | Boolean | Recommended |
| Shipping address contact name | Alphanumeric must be mapped in | Recommended |
| Delivery address phone number | Numeric that must be mappe, in the format: 5511999999999 | Recommended |
| Delivery address contact email | Alphanumeric must be mapped in y, in the format | Recommended |
| Street address and delivery address number | Alphanumeric must be mapped in | Recommended |
| Neighborhood and complement delivery address | Alphanumeric must be mapped in | Recommended |
| Delivery address city | Alphanumeric must be mapped in | Recommended |
| Billing address state.
| string that must be | Recommended |
| Delivery address zip code | Alphanumeric must be mapped in, in the format: 99999999 | Recommended |
| Delivery address country | Text es that must , e.g., BR | Recommended |
| Shipping method type | lowcost | Recommended |
| Indicates the date of first use of the delivery address | Text | Recommended |
Shopping cart
| Field | Description | Type/Size | Required |
|---|---|---|---|
bpmpi_cart_#_description | Item description | Alphanumeric [max 255 positions] | Recommended |
bpmpi_cart_#_name | Item name | Alphanumeric [max 255 positions] | Recommended |
bpmpi_cart_#_sku | Item SKU | Alphanumeric [max 255 positions] | Recommended |
bpmpi_cart_#_quantity | Cart item quantity | Numeric [max 10 positions] | Recommended |
bpmpi_cart_#_unitprice | Unit value of the cart item (cents) | Numeric [max 10 positions] | Recommended |
User
Field | Description | Type/Size | Required |
|---|---|---|---|
| Indicates whether the customer is not logged (guest) | Boolean | Recommended |
| Indicates the account creation date | String | Recommended |
| Indicates the last change date of shopper's account | String | Recommended |
| Indicates the date when the shopper's account password changed | Text | Recommended |
| Shopper's authentication method | 01 - No authentication | Recommended |
| Data that represents the login protocol carried out in the store | Alphanumeric must be mapped in yo | Recommended |
| The date and time the store was logged in | String that must be mappYYYY-MM-ddTHH:mm:ss | Recommended |
| Indicates whether the consumer is a new or existing customer with the merchant | Boolean | Recommended |
Device
Field | Description | Type/Size | Required |
|---|---|---|---|
| IP address of the shopper's machine | Alphanumeric must be mapped in | Yes |
| Id returned by Device Fingerprint | Alphanumeric must be ma | Recommended |
| Device Fingerprint provider name | Alphanumeric must be mapped in | Recommended |
| Channel from which the transaction came from. Possible values: | Alphanumeric must be mapped in y | Yes |
Recurrence
Field | Description | Type/Size | Required |
|---|---|---|---|
| Recurring payment type. | Number | Recommended, if recurrent transaction |
| Indicates whether the recurring payment transaction was validated or not. | Number | Recommended, if recurrent transaction |
| Maximum amount agreed by the cardholder. | numeric that must be mapped | Recommended, if recurrent transaction |
| Unique reference number for the recurring payment transaction. | Alphanumeric must be mapped in yo | Recommended, if recurrent transaction |
| Indicates how often a recurring payment occurs. | Number | Recommended, if recurrent transaction |
| Total number of payments during the recurring subscription. | Number that must be mappe | Recommended, if recurrent transaction |
| Indicates the type of recurring amount agreed by the cardholder. | Supported values: | Recommended, if recurrent transaction |
Airlines
Field | Description | Type/Size | Required |
|---|---|---|---|
| IATA code for the stretch | Alphanumeric must be mappe | Recommended for airlines |
| Departure date | String | Recommended for airlines |
| IATA code from origin airport | Alphanumeric must be mappe | Recommended for airlines |
| IATA code from destination airport | Alphanumeric must be mappe | Recommended for airlines |
| Passenger name | Alphanumeric must be mapped in | Recommended for airlines |
| Ticket price (cents) | Numeric that must be mappe, example:R$125,54 = 12554 | Recommended for airlines |
| Passenger number | Numeric that must be | Recommended for airlines |
| Code of the country that emitted the passport (ISO Standard Country Codes) | Text es that must | Recommended for airlines |
| Passport number | Alphanumeric must be mapped | Recommended for airlines |
Merchant Defined Data
| Field | Description | Type/Size | Required |
|---|---|---|---|
bpmpi_mdd1 | Extra data defined by the merchant | Alphanumeric [max 255 positions] | No |
bpmpi_mdd2 | Extra data defined by the merchant | Alphanumeric [max 255 positions] | No |
bpmpi_mdd3 | Extra data defined by the merchant | Alphanumeric [max 255 positions] | No |
bpmpi_mdd4 | Extra data defined by the merchant | Alphanumeric [max 255 positions] | No |
bpmpi_mdd5 | Extra data defined by the merchant | Alphanumeric [max 255 positions] | No |
bpmpi_brand_establishment_code | Amex Establishment Code (EC) | Text [10 positions] | Required for Amex authentications |
Updated 20 days ago