onReferringCustomerCreated( )


Notes:

Triggered when a referring customer is created.

Method Declaration
Copy
function onReferringCustomerCreated(handler: function): void;
Method Parameters
handlerfunction

handler(event: ReferringCustomerCreatedEnvelope): void | Promise<void>

JavaScript
import { customers } from "@wix/referral"; customers.onReferringCustomerCreated((event) => { // handle your event here });
Did this help?