I'm selling tickets online using the hosted checkout api.
After a successful online payment I want to email the customer the ticket to be redeemed in person.
Hosted checkout works fine.
I'm trying to figure out the correct way to email the customer the ticket after payment.
Using webhooks I'm having to use 3 separate api calls for every "CREATE PAYMENT" event, to get order info, customer info, & line items.
I would like to know how to:
- filter for online payments only
- get the email used in checkout (clover sometimes hides portions of named & email e.g. "emailAddress": "j***3@gmail.com")