UNPKG

@adyen/adyen-web

Version:

[![npm](https://img.shields.io/npm/v/@adyen/adyen-web.svg)](https://www.npmjs.com/package/@adyen/adyen-web)

3 lines (2 loc) 874 B
import{httpPost as e}from"../http.js";import{API_VERSION as r}from"./constants.js";function t(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function n(n,o){const a=`${r}/sessions/${n.id}/setup?clientKey=${n.clientKey}`,c=function(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(r){t(e,r,n[r])})}return e}({browserInfo:o.browserInfo,sessionData:n.data},o.order?{order:{orderData:o.order.orderData,pspReference:o.order.pspReference}}:{});return e({loadingContext:n.loadingContext,path:a,errorLevel:"fatal"},c)}export{n as default}; //# sourceMappingURL=setup-session.js.map