Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save zekus/8947d054736eb63df531d0fbf212796a to your computer and use it in GitHub Desktop.
Save zekus/8947d054736eb63df531d0fbf212796a to your computer and use it in GitHub Desktop.
FE = Frontend
BE = Backend
"Called" means a function was invoked
"Response from" means the response from the function invocation
Logs in a timeline fashion
FE - Created the iframe to host the PSD2 challenge
FE - Loaded the EPS connector javascript library from https://static.pay.expedia.com/3ds/1.3.39/pay-3ds-js-libs-connector.min.js
FE - Instantiated the connector
new PayThreeDSConnector.ThreeDSConnector(
'threedsiframe',
'https://static.pay.expedia.com'
)
FE - Called connector.setup({referenceId: 'sKM0KjRK61DpDlegzyR0hCYLdxqBC9sA_ee48942f-a721-4c6f-913d-7b85a2c2b0dd'})
FE - Response from connector.setup
{
browserAcceptHeader: text/html,application/xml
encodedBrowserMetadata: 'eyJicm93c2VySmF2YUVuYWJsZWQiOmZhbHNlLCJicm93c2VyTGFuZ3VhZ2UiOiJlbi1HQiIsImJyb3dzZXJDb2xvckRlcHRoIjoyNCwiYnJvd3NlclNjcmVlbkhlaWdodCI6MTA4MCwiYnJvd3NlclNjcmVlbldpZHRoIjoxOTIwLCJicm93c2VyVFoiOi02MCwiYnJvd3NlclVzZXJBZ2VudCI6Ik1vemlsbGEvNS4wIChpUGhvbmU7IENQVSBpUGhvbmUgT1MgMTNfMl8zIGxpa2UgTWFjIE9TIFgpIEFwcGxlV2ViS2l0LzYwNS4xLjE1IChLSFRNTCwgbGlrZSBHZWNrbykgVmVyc2lvbi8xMy4wLjMgTW9iaWxlLzE1RTE0OCBTYWZhcmkvNjA0LjEifQ=='
merchantUrl: 'https://secure.findhotel.net',
preferredChallengeWindowSize: 'full_screen',
version: '1.3.65'
}
BE
REQUEST:
curl —location —request POST 'https://api.ean.com/2.4/payment-sessions?token=QldfCGlcUA4FVFFRBQADXQlDRwdWXBBLDwheZkFdBwVVAVMHBglcWhlSXFYCSwdXDwYYXFdWAEwHXFRVBV4CVgUBB1cQXlVHV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TAwYFDA==' --header "Authorization: EAN APIKey=[FILTERED],Signature=[FILTERED],timestamp=1614676811” --header "Customer-Ip: 213.206.226.118" --header “Accept: application/json" --header “Accept-Encoding: gzip" —header “Content-Type: application/json" --data-raw '{"browser_accept_header":"text/html,application/xml","customer_account_details":{"authentication_method":"guest","authentication_timestamp":null,"change_date":null,"create_date":null},"customer_ip":"213.206.226.118","encoded_browser_metadata":"eyJicm93c2VySmF2YUVuYWJsZWQiOmZhbHNlLCJicm93c2VyTGFuZ3VhZ2UiOiJlbi1HQiIsImJyb3dzZXJDb2xvckRlcHRoIjoyNCwiYnJvd3NlclNjcmVlbkhlaWdodCI6MTA4MCwiYnJvd3NlclNjcmVlbldpZHRoIjoxOTIwLCJicm93c2VyVFoiOi02MCwiYnJvd3NlclVzZXJBZ2VudCI6Ik1vemlsbGEvNS4wIChpUGhvbmU7IENQVSBpUGhvbmUgT1MgMTNfMl8zIGxpa2UgTWFjIE9TIFgpIEFwcGxlV2ViS2l0LzYwNS4xLjE1IChLSFRNTCwgbGlrZSBHZWNrbykgVmVyc2lvbi8xMy4wLjMgTW9iaWxlLzE1RTE0OCBTYWZhcmkvNjA0LjEifQ==","merchant_url":"https://secure.findhotel.net","payments":[{"billing_contact":{"address":{"city":"Amsterdam","country_code":"NL","line_1":"Nieuwe Looiersdwarsstraat 9","line_2":null,"line_3":null,"postal_code":"1017 TZ","state_province_code":null},"family_name":"B.V.","given_name":"FINDHOTEL"},"expiration_month":"03","expiration_year":"2025","number":"AAABd_H2mDVYILHg8RgAASZ9r58SAKDI","security_code":"QRYe4U-aTuq4kEliMyl0z8zK","type":"customer_card"}],"preferred_challenge_window_size":"full_screen","request_path":"/2.4/payment-sessions?token=QldfCGlcUA4FVFFRBQADXQlDRwdWXBBLDwheZkFdBwVVAVMHBglcWhlSXFYCSwdXDwYYXFdWAEwHXFRVBV4CVgUBB1cQXlVHVApVC0BrDlBnQ1BWWxYBD3w9YHNxcSceQBZfUFI-UAtZWgMEUAVUAFUV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EAVFSU1RPUlAHBRwAAVNXGAtdUgFPAVYGXVpYUAwGDAMNH0lCDUVdQ0caa11UWQYNVApTWgJCAgBeBBFZF1RQOkUKVVEFVgcBBU4EVRhVVGNWAEBXdQRRFwYiBFAfUAMBPxMCXhRWEUVPZ1RdAQZfeXRCUgBTPFBXQwFHCEhNXQpdDVMaZ0ANCxh6A1IVH1NcAWtVC1ZSCwRFQgJEDFdaXBFQIBZRI0ABAEdBFFwdUFYVUnkUUFBsTwoIdVFXQwZWFwMhRFRXQgscBkBUUBIEI0cAAmxHDFgQBgESViJHBgRBEFkLQQtEQEcLVEMKeAcRVHxDBCIVXVo7E0YBVA1BCw5QWAlGAUJFAhhcXAxAbRVTQUdfWF1pWlQIUhBaQAd1EVdBFAZ0RAVAAXgXARMGeUMLcVVQUQEHBAYPGVNWBwgfUQBSUUgDDlpQHlEEAwZXBVVdBQgHABNAEUdICgtRE29aXVwLBUR7CV0CXhJHWVtRBQcHA11RAlUF' --header “Authorization: EAN APIKey=[FILTERED],Signature=[FILTERED],timestamp=1614676812", —header "Customer-Ip: 213.206.226.118" --header “Accept: application/json" --header “Accept-Encoding: gzip" --header “Content-Type: application/json" --data-raw '{"affiliate_metadata":"anonymous_id:e9f9c56d-53ce-4e15-b8c6-1901e652fb5f|redirect_id:ae002423-5692-448c-b1ac-019ec3ddc2d0","affiliate_reference_id":"QZwPGo/FoZ9SIuTsREaMZRWq3Ug","customer_ip":"213.206.226.118","email":"[email protected]","payments":[],"phone":{"country_code":"31","number":"0638822182"},"request_path":"/2.4/itineraries?token=QldfCGlcUA4FVFFRBQADXQlDRwdWXBBLDwheZkFdBwVVAVMHBglcWhlSXFYCSwdXDwYYXFdWAEwHXFRVBV4CVgUBB1cQXlVHVApVC0BrDlBnQ1BWWxYBD3w9YHNxcSceQBZfUFI-UAtZWgMEUAVUAFUVUENSQkoRXA5WRGsHUAdWQ15Hb1FWEFZRChEJRAdxHFMLUBdMCV0PQQhRVRIKXVtqXwASXQ1QEFMDQ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WEFpT2lKS1YxUWlMQ0poYkdjaU9pSklVekkxTmlKOS5leUpQY21kVmJtbDBTV1FpT2lJMVkyVmtZV1k1TmpNMU5tUmpaVEpqWWpoaFpqRTJNRFlpTENKU1pXWmxjbVZ1WTJWSlpDSTZJakJoWlRWaFpUQXdMV1JoWVRFdE5ERm1NaTFpT1RZMUxUVTFabU0wTURNM1pHTmhPQ0lzSW1semN5STZJalZqWldWaVlUQmhNelUyWkdObE1tTmlPR0l4T0RNeU1TSXNJbEJoZVd4dllXUWlPbnNpVDNKa1pYSkVaWFJoYVd4eklqcDdJazl5WkdWeVRuVnRZbVZ5SWpvaU1XUTFOV1V5TmpNdE5qY3hOUzAwWVRnM0xUa3hOVEV0T1dVNE9XRXlOamhoTWpZNElpd2lRV05qYjNWdWRFNTFiV0psY2lJNklqVXhNalExT0NKOWZTd2laWGh3SWpveE5qRTBOamcyTmpBNExDSnBZWFFpT2pFMk1UUTJOekl5TURnc0ltcDBhU0k2SWpVME5EQmlaVEl4TFRobE5tTXROR00xTmkxaFpEWmxMV0kxTTJReVpXUmtNMlZpWlNKOS5HZHBoaFNyVERkZ1l1cUZUTWc4LXBmNFB3bHZzcFZmOGlFY2xCbjNCOUlJIiwiZW52aXJvbm1lbnQiOiJQcm9kdWN0aW9uIiwibG9nZ2luZ0xldmVsIjoib24ifV0="
})
FE - Called connector.challenge({
encodedChallengeConfig: "W3sicHJvdmlkZXJJZCI6IjEiLCJwYXltZW50SW5zdHJ1bWVudFJlZklkIjoiMTUzMDU0ODciLCJub3RpZmljYXRpb25VcmwiOiJodHRwczovL3JlZGlyZWN0LXByb3h5LnByb2QudXMtd2VzdC0yLnBheXByb2RwY2kuY29tL3JlZGlyZWN0LXByb3h5L25vdGlmeS9leUpyYVdRaU9pSXhOVFU1TWpVME56UTNOamN3SWl3aVlXeG5Jam9pU0ZNeU5UWWlmUS5leUp1YVdRaU9pSnlNVG80TkRFNE16azNJaXdpWlhod0lqb3hOakUwTmpjek5EUTJmUS45UGZ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sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment