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.
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
}
},
...
]