#cardinalm7 - PO Box validation
1 messages · Page 1 of 1 (latest)
Sorry for my delay, lots of questions. And you are creating the paymentRequest with requestShipping: true?
https://stripe.com/docs/stripe-js/elements/payment-request-button?html-or-react=html#html-js-collecting-shipping-info
yes, in the usePaymentRequest hook I have requestShipping: true in the options object.
in the usePaymentRequest hook
This needs to be specified when you create the paymentRequest object (Apologies if I misunderstood).
I believe we are using the orders flow - I don't think our frontend is creating a paymentRequest with our current implementation.
we create our payment ID on the backend on order submit.
paymentMethodID*
and confirm the card payment on the front end.
Ideally we can validate the address before the customer submits the order.
The full address information is not available during those address change events for privacy reasons -- it's obscured typically only to the postal code/zip level to allow you to eg determine shipping rates.
You would get the full address upon completion of the payment request once your customer agrees to pay.
If you need to review addresses in more detail, you'd need to do this afterward, and I suggest using deferred capture in that case to allow you to get an authorization and review the address details before capturing payment.
https://stripe.com/docs/payments/capture-later
Gotcha, darn :P. OK I will add the validation using the onPaymentMethod function.