@unchainedshop/plugins
Version:
Official plugin collection for the Unchained Engine with payment, delivery, and pricing adapters
11 lines (10 loc) • 353 B
JavaScript
export default async function authorizeAuthenticated({ transactionId, ...payload }) {
const reqBody = {
...payload,
autoSettle: false,
};
const { fetchDatatrans } = this;
const result = await fetchDatatrans(`/v1/transactions/${transactionId}/authorize`, reqBody);
const json = await result.json();
return json;
}