Parameter Definition
By using the config object with this input data in the SDK integration, an accurate and complete flow of information is ensured, allowing to efficiently interact with the functionalities and services provided by the SDK. It is important to follow the specific guidelines and recommendations provided by the SDK documentation to ensure correct use of this input data.
- Input data: The config object is composed of the following attributes:
Object of Configuration, contain the other objects (order, token, billing, …)
Field that allows you to change the endpoints consumed by the library.
TEST
SBOX
PROD
TEST
It is the “New Payment Button API Key” obtained from the Commerce BackOffice platform of Punto Web
VErethUtraQuxas57wuMuquprADrAHAb
Unique identifier of the operation generated by the commerce
16868479028040
Indicator that determines the form of the purchase, values: pay: Purchases with card (without tokenization), register: card registration (tokenization), pay_register: Purchases and card registration, pay_token: Purchases with Izipay token (tokens obtained in the register and pay_register actions)
pay
register
pay_register
pay_token
pay
Code of the commerce or submerchant (child code of the merchantFacilitator), generated by Izipay during affiliation.
4001834
Facilitator commerce code, generated by Izipay during affiliation
4000901
Purchase object
Purchase transaction order number
1687996765
Currency of the transaction.
PEN
USD
PEN
Txn amount. Integers with 2 decimals, consider decimal separator without thousands delimiter.
10.00
List of purchase payment method indicators
PayOption.CARD
PayOption.YAPE
PayOption.CARD
Process Type for a transaction.
autorize
preauthorize
autorize
UNIQUE identifier of the buyer in the commerce system.
mc1991
Transaction date sent by the commerce or terminal in timestamp format.
1688149430031000
Object with information of tokenized card. Mandatory only when action=pay_token
Token value that identifies the card of the cardholder. Mandatory only when action=pay_token
27340718bfdf2de6a125d29ecc6ebf279cc4daf20150aee8a3b4911f02d0ef81
Billing object (cardholder)
Cardholder's first name
Lucho
Cardholder's last name
Torres
Cardholder's email
luchotorres@gmail.com
Cardholder's phone number
989897960
Cardholder's billing address
Av. Jorge Chávez 275
City of the cardholder billing address
Lima
Name of the department or state of cardholder billing. If the billing.country field is US or CA (United States or Canada) respects the rule of 2 character format. Example: California = CA
Lima
Country of the cardholder billing address - 2 character ISO code. Example: Peru = PE
PE
Postal Code (CP) of the cardholder billing address. If the billing.country field is “US”(United States) respects the following format rules of 5 characters (NNNNN) or 9 characters (NNNNN-NNNN)If the billing.country field is “CA”(Canada), respects the following format rule of 6 characters (ANA NAN). Where N = Numeric and A = alphanumeric
15000
Cardholder's identification document type
DNI
CE
PASAPORTE
RUC
OTROS
DNI
Cardholder's identity document number.
Length(min - max):DNI:= 8 characters
CE:>=9 characters <=12 characters
PASAPORTE:>=8 characters <=12 characters
RUC := 11 characters
OTROS:>=8 characters <=12 characters
12345678
Social reason or company name.
Shipping object
Names for shipping
Juan
Last names for shipping
Pérez
Email for shipping
juanperez@gmail.com
Phone for shipping
989897960
Address for shipping
Av. Jorge Chávez 275
City of the address for shipping
Lima
Name of the department or state of cardholder billing. If the billing.country field is US or CA (United States or Canada) respects the rule of 2 character format. Example: California = CA
Lima
Country of the cardholder billing address - 2 character ISO code.
PE
Postal Code (CP) of the cardholder billing address. If the billing.country field is “US”(United States) respects the following format rules of 5 characters (NNNNN) or 9 characters (NNNNN-NNNN)If the billing.country field is “CA”(Canada), respects the following format rule of 6 characters (ANA NAN). Where N = Numeric and A = alphanumeric
15000
Type of identification document for shipping
DNI
CE
PASAPORTE
RUC
OTROS
DNI
Number of identification document for shipping
Length(min - max):DNI:= 8 characters
CE:>=9 characters <=12 characters
PASAPORTE:>=8 characters <=12 characters
RUC := 11 characters
OTROS:>=8 characters <=12 characters
12345679
Commerce notification API URL (IPN).
https//www.tu-web.com/notificaciones/
Form appearance object.
Default form language. Default value ESP (Spanish)
ESP
ENG
ESP
Object with control settings
Show the amount on the "Pay" button of the payment form
false
Show or not the available languages | ESP, ENG
true
Predefined themes: “green", "red", "black"
green
red
black
red
Object for control customization
Color you want to give to the pay button, value in hexadecimal with #
#FFFFFF
Color you want to give to the border of the input fields, value in hexadecimal with #
#F3F3F3
Color you want to give to the placeholder of the input fields, value in hexadecimal with #
#F1F1F1
Commerce logo URL
https://www.miweb.com/logo
Object that defines the behavior of the SDK and some visual elements within it.
Show the operation/payment result screen, default value true.
true
- Output data:
- SDK 1.3.0+
- SDK 1.2.2- (deprecated)
Authorization response code
00
Authorization response message, according to the language
Ok
Friendly message for the user, according to the language
Ok
Friendly message for the user in English
Ok
Response data object
Indicator of the payment method of the purchase
CARD
YAPE_CODE
CARD
Array of Order Objects
Indicator of the payment method of the order:
CARD
YAPE_CODE
CARD
Authorization code of the purchase generated by the card issuer
Currency of the transaction.
PEN
USD
PEN
Txn amount. Integers with 2 decimals, consider decimal separator without thousands delimiter
10.00
Number of Installments that will affect the purchase.
10
Deferred number that will affect purchases.
Order number of the purchase transaction, sent in the security api (Token Session).
1687996765
Message of the transaction status (Authorized/Denied).
Transaction date (fechatxn saved in transaction table) Format yyyymmdd.
20221212
Transaction time (fechatxn saved in transaction table) Format hhmmss.
185330
Transaction identifier made by Izipay or Cybersource.
1011173920740022
Reference number generated by the acquirer. This data is important for the refund request.
1315646
Object with card data
Type of card brand
Allowed values
MC
: MasterCardVS
: VisaAE
: AmexDN
: Diners
VS
Masked card number used in the transaction
411111******1111
Identifier if the card was registered in the operation
true
Billing object (cardholder)
Cardholder names
Lucho
Cardholder last names
Torres
Cardholder email
luchotorres@gmail.com
Cardholder phone
989897960
Cardholder billing address
Av. Jorge Chávez 275
City of the cardholder billing address
Lima
Name of the department or state of cardholder billing.
Lima
Country of the cardholder billing address - ISO code.
PE
Postal Code (CP) of the cardholder billing address.
15000
Type of cardholder identification document
DNI
CE
PASAPORTE
RUC
OTROS
DNI
Cardholder identification document number.
Length(min - max):DNI:= 8 characters
CE:>=9 characters <=12 characters
PASAPORTE:>=8 characters <=12 characters
RUC := 11 characters
OTROS:>=8 characters <=12 characters
12345678
Social reason or company name.
Commerce data object
Commerce code or submerchant (child code of the merchantFacilitator), generated by Izipay during affiliation.
Facilitator commerce code, generated by Izipay during affiliation.
Tokenization, Private and Brand object.
Unique identifier of the buyer in the commerce system.
Token value that identifies the card of the cardholder.
Card alias.
Authentication object.
Authentication result.
Array of Strings
Original response message used for signature generation.
{"code":"00","message":"OK"…..}
It is the hash of the request payload expressed in a base64 value string.
b166214e976c7e76390889
Unique id for each transaction generated by the commerce, sent in the security api (Token Session) equivalent to the Correlation Id for the transaction flow.
16881500822750
Response code
00
Response message
Ok
Friendly message for the user
Ok
Friendly message for the user in English
Ok
Response data object
Payment method indicators separated by comma, if a single method is sent, do not add a comma.
CARD
CARD
Currency of the transaction.
PEN
USD
PEN
Txn amount. Integers with 2 decimals
10.00
Order number of the purchase transaction.
1687996765
Commerce code or submerchant (child code of the merchantFacilitator), generated by Izipay during affiliation.
Transaction time
185330
Transaction date
20221212
Transaction identifier made by Izipay or Cybersource. Included only in the responses of payment authorizations.
1011173920740022
Authorization code issued by the bank
AB123
Transaction signature
b166214e976c7e76390889
Transaction reference number
1315646
Data sent by the authorization service to the SDK. Its storage is not recommended because it is an extensive value of variable length.
{"code":"00","message":"OK"…..}
Object with card data
Card brand
Allowed values
MC
: MasterCardVS
: VisaAE
: AmexDN
: Diners
VS
Masked card number used in the transaction
411111******1111
Indicator if the card was saved
true
Billing object (cardholder)
Cardholder names
Lucho
Cardholder last names
Torres
Cardholder email
luchotorres@gmail.com
Cardholder phone
989897960
Cardholder billing address
Av. Jorge Chávez 275
City of the cardholder billing address
Lima
Name of the department or state of cardholder billing.
Lima
Country of the cardholder billing address
PE
Postal Code (CP) of the cardholder billing address.
15000
Type of cardholder identification document
DNI
CE
PASAPORTE
RUC
OTROS
DNI
Cardholder identification document number.
Length(min - max):DNI:= 8 characters
CE:>=9 characters <=12 characters
PASAPORTE:>=8 characters <=12 characters
RUC := 11 characters
OTROS:>=8 characters <=12 characters
12345678
Social reason or company name.
Object with tokenized card data
Token value that identifies the card of the cardholder
27340718bfdf2de6a125d29ecc6ebf279cc4daf20150aee8a3b4911f02d0ef81