This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Triggered when a receipt preset is created.
function onReceiptPresetCreated(handler: function): void;
handler(event: ReceiptPresetCreatedEnvelope): void | Promise<void>
import { receiptPresets } from "@wix/get-paid";
receiptPresets.onReceiptPresetCreated((event) => {
// handle your event here
});