Payments | payment session does not send phone number even though it is captured

Payments | payment session does not send phone number even though it is captured

teena_m_george
Tourist
4 0 3

Hello,

We are developing a new payments app (as per the instructions here: https://shopify.dev/apps/payments/processing-a-payment).

We have a requirement to capture customer phone number in order to proceed with payment processing. We have enabled the necessary settings in development store so that we will get shipping phone number in the payment session request body.

We set the `Shipping phone number` as `required` and `customer can checkout with phone number or email` (I tried with both options).

When we analysed the received payment session request body, we don't get the phone number.

 

I also noticed in the documentation something along the lines - `If customer is included, then one of customer.email or customer.phone must be present, but not both`.

Does anybody know why there is such a rule? Is there any way to get phone number?

 

Thanks,

Teena George

 

teena_m_george_2-1638521009122.png

 

 

teena_m_george_1-1638520710770.png

 

teena_m_george_0-1638520667361.png

 

Reply 1 (1)

WarriorSushi
Visitor
1 0 0

i am facing the same issue, with CCAvenue .

i have the customers phone number field as required in my shopify, but for some reason, CCAvenue isn't able to capture it.