I’m trying to pre-populate the phone number field when creating a PaymentLinkRequest. I have tried the following formats when using the setBuyerPhoneNumber
method on the PrePopulatedData
object:
+15555555555
+1 (555) 555-5555
(555) 555-5555
5555555555
In all instances I’m getting the following error:
INVALID_REQUEST_ERROR
INVALID_PHONE_NUMBER
Invalid phone number.
pre_populated_data.buyer_phone_number
I’ve read through the docs, and as far I can tell, the first 2 formats should work. What am I doing wrong? I’m using the PHP SDK v31.0.0.20230925