Tokenization
This allows the API consumer to tokenize raw payment method details for a customer, and use the returned secure token (often referred to by us as the XPay customer token) to make future charges against the underlying payment method - without having to deal with the customer's raw payment details. The returned Customer Token ID can be used in subsequent API requests.
The token can be used for any sort of relevant Charge
resource in XPay, and other services inside the XCover ecosystem (which in turn use XPay). If using this token to create an insurance booking in XCover, please make sure that the email address you use when creating this customer token in XPay matches exactly the email address you then send to XCover as the policyholder.email
.
Example usages:
Pass this value to the XCover booking endpoint when creating a booking, in order to relay that XPay should charge the customer using the respective payment details tokenized.
Pass this value via the
customerTokenId
param, when creating a charge in XPay.
Last updated