#saahil_docs
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/1426255038099095562
π 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.
- saahil_code, 17 hours ago, 19 messages
In the Customer Sheet, when selecting add +, the option for Apple Pay isn't present?
Nope it isn't present.
Thats the ideal solution for my problem.
The manage your payment methods shows apple pay as a generic tile I can switch to it but I can't remove it or add another card from apple pay.
Looking into this.
Thanks
π Taking over this thread, catching up now
Cool, thanks!
Could you share the code which you integrate customer sheet, so that I can take a look?
In addition, could you share what you meant by you can't remove a card from Apple Pay? Are you referring to the newly added Apple Pay card can't be removed in Customer Sheet?
Yeah let me grab some snippets.
Yeah when I click on the button in my application that enables the view of the customer sheet, there are multiple tiles.
If I click edit at the top right the apple pay tile gets greyed out.
Below are the configs I am setting
var config = CustomerSheet.Configuration()
config.appearance = .default config.allowsRemovalOfLastSavedPaymentMethod = false
config.applePayEnabled = true
"config.applePayEnabled = true" is to show Apple Pay as an option. Isn't this what you're looking for?
At a high level here's how I intergrate the customer sheet:
- Fetch setup intent from server for customer
- Fetch customer from server
- Seed StripeCustomerAdapter with revlant keys
- Seed STPAPIClient with keys
- Configure and instantiate a customer sheet
- Wait for StripeCustomerAdapter.fetchPaymentMethods()
- Wait for StripeCustomerAdapter.retrievePaymentOptionSelection
- Return the sheet and some additional info
Could you share an example customer ID (cus_123) which you have a card saved using Apple Pay?
Yeah that was the intention for setting config.applePayEnabled equal to true
Yeah that was the intention for setting config.applePayEnabled equal to true
Sorry, I'm not really getting your question. If Apple Pay is shown, doesn't it mean that the customer can add a new card from Apple Pay?
The tile doesn't do anything
While setting config.applePayEnabled enables me to see the applePay tile I shared in the image above, it doesn't seem to allow for actually launching the OS level apple pay card selector.
Yeah I can share an example - cus_TD6oWC5SWCJwZu
Did you click "Confirm" button to launch the Apple Pay interface?
Or nothing happens when you click the "Confirm" button?
When I click confirm the apple pay interface doesn't appear.
It instead changes the payment method to the card I attached on the initial payment sheet payment using apple pay.
Is the expected functionality that the Apple Pay interface launches on confirm? That would be my desired end state.
I'm checking with my teammates on the expected behavior. Could you share the video of the flow you're currently experiencing and the full Stripe integration code on the Customer Sheet?
Thanks. Let me see what I can share on the video and the code.
Can't share a full video but here is the flow. I am going through.
When you click "Add" button, what do you see? Is it just card only?
Yes thats correct. Here's the corrcted flow:
Initial payment which initiates the subscription. I paid with a apple pay card through the payment sheet.
Customer sheet on intial click
Customer sheet after clicking apple pay
Confirm doesn't open the apple pay integration.
Then I click add
Thanks for sharing! Upon checking, it's expected that Apple Pay should be shown in the Payment Sheet interface after clicking the "Add" button. It's strange that it's not showing here
I'll be sending you a link to write to us, so that we can follow up with you on why adding Apple Pay isn't working in this case
Hello @peak vessel, we have sent you a direct message, please check it at https://discord.com/channels/@me/1426274327371841587
- πThe message has instructions on how to open a direct support case with our Developer Support team, in order to help you more effectively.
Thanks! We've received the case! We will get back to you once we have an update
Thanks, do you know what an approximate timeline to expect is?
I'm afraid I don't have a timeline to share at the moment. We will keep you posted as soon as we have an update
Thanks
No problem! Happy to help π