Email Optin

Optin

Use the field emailOptin at payment request to trigger the email optin retrieval flow.

After the payment flow, the user will be asked if he wants to receive his next communications through email. If the user decides to optin, Digiteal will then collect the email and send it through a webhook.

Email collection page

Email collection page

Payment request

Request a payment through API.

Find out how to request a payment

Webhook

You should subscribe to the webhook to be notified when a user chooses to receive his communications through email.

📘

Webhook type

CUSTOMER_OPTIN

❗️

If you do not register to this webhook, the email optin screen will not appear after the payment flow.

The webhook body will contain the email collected in the email optin retrieval flow as well as the information related to the payment.

{
  "executionTimestamp":"2024-03-18T23:11:14.060413",
  "creditorIdentificationNumber":"BE:VAT:BE0129306068",
  "customerInternalId":"54e5b890-b08b-4268-a374-5c3f13582c41",
  "channel":"DIGITEAL",
  "changeType":"OPTIN",
  "email":"[email protected]"
}