Skip to content

Commit

Permalink
feat: add 3ds data to client session
Browse files Browse the repository at this point in the history
  • Loading branch information
xevious78 authored and rabelloo committed Jan 25, 2024
1 parent 1e9dd9f commit 0381080
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 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,28 @@ 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 0381080

Please sign in to comment.