I’m having a bit of trouble with getting the details of the buyers first name and surname into a custom confirmation email. The only way I can see is to get the buyers email address from the payment.created webhook and use this to run a search against the customer end point ‘POST /v2/customers/search’ then include a query filter for the customer email address in the body of the call.
This worked well a couple of times in testing but since taking some actual payments, it doesn’t look like the customer is being created with their first name and surname personal details stored in the customer directory. The customer record is there but with just the email address. I have ‘Instant Profiles’ turned on in the customer directory settings so I’m not sure why it isn’t saving all the buyer’s details. Is there a failsafe method of retrieving the buyers first name and surname once a payment has gone through?