#cardinalm7 - PO Box validation

1 messages · Page 1 of 1 (latest)

lusty briar
#

Hi 👋
So you are using the Payment Request Button in a web page setting?

worthy coral
#

yes

#

(sorry for the delay am in a stand up)

lusty briar
worthy coral
#

yes, in the usePaymentRequest hook I have requestShipping: true in the options object.

lusty briar
#

in the usePaymentRequest hook

#

This needs to be specified when you create the paymentRequest object (Apologies if I misunderstood).

worthy coral
#

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.

north ether
#

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

Separate authorization and capture to create a charge now, but capture funds later.

worthy coral
#

Gotcha, darn :P. OK I will add the validation using the onPaymentMethod function.