UNPKG

@unchainedshop/plugins

Version:

Official plugin collection for the Unchained Engine with payment, delivery, and pricing adapters

11 lines (10 loc) 308 B
export default async function authorize({ ...payload }) { const reqBody = { ...payload, autoSettle: false, }; const { fetchDatatrans } = this; const result = await fetchDatatrans('/v1/transactions/authorize', reqBody); const json = await result.json(); return json; }