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