Skip to content

Commit

Permalink
feat: add data to client session (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
xevious78 authored Jan 25, 2024
1 parent 5d4e62a commit df714b2
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions examples/features/cobadged/src/api/createClientSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,27 @@ export function createClientSession() {
order: {
countryCode: 'GB',
},

// emailAddress and billingAddress are required for 3DS
customer: {
emailAddress: '[email protected]',
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,
);
Expand Down

0 comments on commit df714b2

Please sign in to comment.