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) 385 B
import{httpPost as t}from"../http.js";import{API_VERSION as o,API_ERROR_CODE as n}from"./constants.js";function a(a,e){const s=`${o}/sessions/${e.id}/donations?clientKey=${e.clientKey}`,r={...e.data&&{sessionData:e.data},...a};return t({loadingContext:e.loadingContext,path:s,errorLevel:"fatal",errorCode:n.donations},r)}export{a as default}; //# sourceMappingURL=make-donation.js.map