Skip to main content

Authenticate

If the user is know to click to pay, but is not on a recognised device, call the authenticate method.

Provide either an email or phone which the user is enrolled with and whether to remember the user on the given device.

The caller should provide a Window or IFrame in which authenticate will take place, and it is up to the caller to close the windowRef after the call.

It will return a list of cards.

AuthenticateParams

email String

Email of the user

phone String

The phone number of the user

rememberMe boolean

Whether to request to authorize the device

windowRef WindowProxy

Either a Window or IFrame

Authenticate the user with the payonic-click2pay.js client
payonicClickToPay.Authenticate({
email: "test@test.com",
phone: "+4512345678",
rememberMe: false,
windowRef: Window or IFrame
});
Response
[
{
Provider: "Unified"
DigitalCardId: "8d070e67-8503-4260-8f7f-ed574e36d9c6"
PanBin: "518600"
PanLastFour: "8785"
ExpiryMonth: "01"
ExpiryYear: "28"
Scheme: "mastercard"
Raw: {
// Raw card returned by the provider
}
},
...
]