#Dan Rosewarne-afterpay-shipping-address

1 messages ยท Page 1 of 1 (latest)

cosmic grove
flint kiln
#

๐Ÿ‘‹ Hi @cosmic grove thanks for getting back to us. As we're creating the payment intent ahead of the choice of payment method and when we only know the amount we're having to put in a shipping address that is the same for everyone. We're using payment element and a ruby backend

#

The flow we're using is

  1. Load the checkout by creating a payment intent on the server and returning to the client so Elements can initialise with the client secret.
  2. Let the user choose the payment method and pay
  3. Confirm the payment on the client with stripe.confirmPayment
  4. Fulfil the order on our backend with the successful payment intent.

How would we adapt this flow to collect a shipping address as part of the payment elements lifecycle or at least set it to be the same as the billing address?

cosmic grove
#

Thanks for that, taking a closer look.

fervent yarrow
#

@flint kiln / @spring garnet still around? sorry this thread got missed, catching up (juggling a few threads, your other one too)

flint kiln
#

๐Ÿ‘‹

#

No problem, we're off for the evening now so no rush