From df714b2b93f65ae2e3093d9eb3d07440f7802d5e Mon Sep 17 00:00:00 2001 From: Aladin Taleb Date: Thu, 25 Jan 2024 13:52:28 +0100 Subject: [PATCH] feat: add data to client session (#2) --- .../cobadged/src/api/createClientSession.ts | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/examples/features/cobadged/src/api/createClientSession.ts b/examples/features/cobadged/src/api/createClientSession.ts index 38295c1..02934f4 100644 --- a/examples/features/cobadged/src/api/createClientSession.ts +++ b/examples/features/cobadged/src/api/createClientSession.ts @@ -11,6 +11,27 @@ 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, );