Populating First and Last name in Create payment link API

Hi, I have an api call setup to create a payment link on the fly when a client is ready to make a payment. I seem to have everything setup correctly but I am unable to pre-populate the first and last name in the Contact section. The phone number and email address are populating as expected.

I have tried using the first_name and last_name options under pre_populated_data > buyer _address but that does not seem to work.

Does anyone know which values to use?


You might try given_name and family_name. Not sure, but these are used on Customer objects.

Thanks for bringing this to our attention. The team is aware of this and working on a fix. :slightly_smiling_face:

I am also running into this same issue. Can you confirm this is just a bug? Wondering If I can keep my logic / code as is and it will eventually work.

This was an issue but was fixed. Do you have an example link that’s not populating correctly? :slightly_smiling_face:

Seems to be working now. Thanks.

What were the value names? I have tried all the obvious ones.


Hi Mike,

I used the following.

"subscriber": {
  "name": {
  "given_name": "'.$subscriber[0]['first_name'].'",
  "surname": "'.$subscriber[0]['last_name'].'"