Checkout Form
Amplified and responsive suitable for web and mobile applications.
This method receives an object with the specific parameters for the desired payment method.
Property | Description | Mandatory? | ||
---|---|---|---|---|
Physical Network | Cards | Redirect | ||
PaymentMediaId numeric | Payment media identifier. | |||
PaymentMediaType numeric | Payment media type identifier (see table Payment method types). | |||
IssuerBank numeric | Bank identifier (see table Issuer Bank). | |||
Email string | Email address of the Customer. | |||
DocumentNumber string | Customer document number. | |||
DocumentType numeric | Customer document type. | |||
LoyaltyPlanId numeric | Loyalty Plan identifier. | |||
LoyaltyPlanUserIdentification string | Loyalty Plan user identifier. |
Examples:
var tokenRequest = {
PaymentMediaId: 5,
Email: "john@mail.com",
DocumentNumber: "12345672",
DocumentType: 2
};
PWCheckout.Iframe.GetToken(tokenRequest);
This example opens the capture form only for MasterCard cards.
var tokenRequest = {
PaymentMediaId: 2,
Email: "john@mail.com"
};
PWCheckout.Iframe.GetToken(tokenRequest);
This example opens the capture form only for MasterCard cards issued by Santander Bank.
var tokenRequest = {
PaymentMediaId: 2,
IssuerBank: 1,
Email: "john@mail.com"
};
PWCheckout.Iframe.GetToken(tokenRequest);
This example opens the capture form only for Visa Debit cards.
var tokenRequest = {
PaymentMediaId: 1,
PaymentMediaType: 2,
Email: "john@mail.com"
};
PWCheckout.Iframe.GetToken(tokenRequest);
This example generates a OneTimeToken
for Khipu payments.
var tokenRequest = {
PaymentMediaId: 110,
Email: "john@mail.com"
};
PWCheckout.Iframe.GetToken(tokenRequest);
The CloseInfo
object is returned in the closed
event, triggered when the user closes the card data capture form.
Field | Description |
---|---|
Reason string | Description of the reason why the window was closed. The possible causes are the following:
|
The TokenInfo
object is returned in the tokenCreated
event triggered by the card data capture form after processing the user’s data.
Field Type | Description |
---|---|
TokenId string | Token identifier. |
Created timestamp | Token creation date and time. |
Type string | Token type, possible values:
|
Brand string | Brand of the card or payment method used. |
IssuerBank string | Card issuer bank. |
Owner string | Cardholder name. |
Bin numeric[6] | Card identifier. |
Last4 numeric[4] | The cards last four digits. |
CardType string | Payment method (or card) type, possible values:
|
CardExpMonth numeric[2] | Card expiration month. |
CardExpYear numeric[2] | Card expiration year. |
The NotificationInfo
object is returned in the notificationReceived
event, which is triggered when the Verification Code Request Flow finishes.
Field Type | Description |
---|---|
ProcessType string | Defines the process type of the notification is being issued. Possible values are:
|
ProcessStatus numeric[1] | Possible statuses of a process are:
|
Amplified and responsive suitable for web and mobile applications.
Corresponds to a payment form embedded on its page, simplifying and securing the capture of sensitive data for the processing of online payments.