#svg-paymentsheet-shipping
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- SVGteam, 19 hours ago, 8 messages
svg-paymentsheet-shipping
Let me have a look
(taking me some time to figuring it out but I haven't forgotten you)
@oak charm okay sorry, someone on my team tested and https://stripe.dev/stripe-ios/stripepaymentsheet/documentation/stripepaymentsheet/paymentsheet/configuration-swift.struct/shippingdetails/ should work, like this: var configuration = PaymentSheet.Configuration() // Do the rest of the sheet configuration stuff... configuration.allowsPaymentMethodsRequiringShippingAddress = true configuration.shippingDetails = { [] in return AddressViewController.AddressDetails(address: AddressViewController.AddressDetails.Address(city: "City", country: "US", line1: "line1", postalCode:"12345", state: "CA"), name: "First Last") }
So if a user purchases something and fills in their shipping address and then tries to make another purchase, currently they have to fill in their shipping address again. I see that stripe stores the shipping address when someone makes a payment.
Is it possible to retrieve that users shipping address from the initial purchase so that I can prefill it for them?
Do you have an example transaction in Test mode where you passed shipping?
This is the payment id: pi_3OhKWmGh7cRmN2H00CK3G4J0
Sorry that's the id for the payment url
This is the id associated with the payment method: pm_1Oh7iEGh7cRmN2H047iUuri1
okay so that PaymentIntent you had earlier it has the shipping property with all the info
so you could store this in your database after the payment succeeds and use that
Okay thank you!
sure thing!