#Phone number not found in context during checkout.

8 messages · Page 1 of 1 (latest)

storm steppe
#

I am hosting my storefront on Vercel, while in checkout it works fine locally with my RazorPay integration, but while hosting the payment integration does not work.

The payload is empty on

/store/carts/cart_01HJNJ2YZ7DJTEAGM83FADZ6WG/payment-sessions

west night
#

This is because you haven't set the phone number in thr payment session data

sweet bramble
#

I am console logging the paymentContext

razorpay-base.js/167:0 customer Customer {
  id: 'cus_01HKPG6232DAGN28193MCNEAJ5',
  created_at: 2024-01-09T06:57:27.771Z,
  updated_at: 2024-01-09T06:57:27.771Z,
  deleted_at: null,
  email: '[email protected]',
  first_name: null,
  last_name: null,
  billing_address_id: null,
  phone: null,
  has_account: false,
  metadata: null
}
#

I am also passing it from the frontend but it's showing null in the backend

#

I don't know why this is happening

west night
#

That is because your bulling addresses isn't set

#

Let me try to fix this