#jasonhuo_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1369050258041995339
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
- jasonhuo_api, 1 hour ago, 17 messages
No
Ah okay you are using this flow: https://docs.stripe.com/apple-pay?platform=ios ?
Yes
Gotcha, let me check if you can force postal code here.
OK thank.
Okay I believe you set requiredBillingContactFields via the paymentRequest: https://stripe.dev/stripe-ios/stripeapplepay/documentation/stripeapplepay/stpapplepaycontext/init(paymentrequest:delegate:)
See here in the Apple docs: https://developer.apple.com/documentation/passkit/pkpaymentrequest/requiredbillingcontactfields
Let me check the doc
Yes, I could get the billing contact from Apple, and how can I pass the information to Stripe?
When you are creating the payment request object, you can set those requiredBillingContactFields while creating your PKPaymentRequest object
https://docs.stripe.com/apple-pay?platform=ios#create-payment-request
That will tell us to collect those details when showing the sheet and it should automatically get passed in when the payment is submitted
and then Stripe can get the billing information directly from the payment request?
That is my understanding, I am double checking with colleagues
OK, let me know if you confirm
I checked the app. The sheet has collected the billing information
Nice! Had just confirmed this on our side
We don't have a doc that demonstrates this, but the typical way I am seeing to force collection with us is:
paymentRequest.requiredBillingContactFields = Set([.postalAddress])```
I think we has collected the billing information
But the Stripe transaction still does not have the billing information
Can you send me the ID of your test transaction? I can take a look
ch_3R89DkA1KmcXQec817xZ93lz,ch_3R89DcA1KmcXQec81B2fjSrC,ch_3R89BSA1KmcXQec80IHB126W
Ah those are older charges, I thought that you meant that with this new param the details weren't being passed on. I will see if I can find more on this behavior
The PM for that first charge was created with the Stripe.js payment request button, rather than an iOS app. Can see if there is a similar setting for the PRB. Checking the other charges
Let me test it on our website
In website, it only show the card information but no billing information. Does it mean billing information will miss?
Likely, if you actually submit the payment we should show the details that are passed to us properly. Is it possible for you to add a billing address in the dropdown when selecting your card?
No, for the inplementation in website, we cannot add a billing address
You can set requestPayerName: true when initializing your payment request object to collect the cardholder's name and address https://docs.stripe.com/js/payment_request/create#stripe_payment_request-options-requestPayerName