From 03810805cc0d40ee567360f05034d2ad48109733 Mon Sep 17 00:00:00 2001 From: Aladin Taleb Date: Thu, 25 Jan 2024 09:41:11 +0100 Subject: [PATCH] feat: add 3ds data to client session --- .../cobadged/src/api/createClientSession.ts | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/examples/features/cobadged/src/api/createClientSession.ts b/examples/features/cobadged/src/api/createClientSession.ts index 38295c1..2928f3f 100644 --- a/examples/features/cobadged/src/api/createClientSession.ts +++ b/examples/features/cobadged/src/api/createClientSession.ts @@ -11,6 +11,28 @@ export function createClientSession() { order: { countryCode: 'GB', }, + + // emailAddress and billingAddress are required for 3DS + customer: { + emailAddress: "test@test.com", + mobileNumber: "+6588889999", + firstName: "John", + lastName: "Smith", + billingAddress: { + firstName: "John", + lastName: "Smith", + postalCode: "CB94BQ", + addressLine1: "47A", + countryCode: "CL", + city: "Cambridge", + state: "Cambridgeshire" + } + }, + + paymentMethod: { + orderedAllowedCardNetworks: ["CARTES_BANCAIRES", "VISA", "MASTERCARD"] + } + }, primerHeaders, );