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) 841 B
import{httpPost as t}from"../http.js";import{API_VERSION as e,API_ERROR_CODE as n}from"./constants.js";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(o,a){const i=`${e}/sessions/${a.id}/paymentDetails?clientKey=${a.clientKey}`,c=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),o.forEach(function(e){r(t,e,n[e])})}return t}({},a.data&&{sessionData:a.data},o);return t({loadingContext:a.loadingContext,path:i,errorLevel:"fatal",errorCode:n.submitPaymentDetails},c)}export{o as default}; //# sourceMappingURL=submit-details.js.map