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