#saahil_docs

1 messages Β· Page 1 of 1 (latest)

dry dewBOT
#

πŸ‘‹ 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.

woeful copper
#

In the Customer Sheet, when selecting add +, the option for Apple Pay isn't present?

peak vessel
#

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.

dry dewBOT
woeful copper
#

Looking into this.

peak vessel
#

Thanks

drifting crag
#

πŸ‘‹ Taking over this thread, catching up now

peak vessel
#

Cool, thanks!

drifting crag
#

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?

peak vessel
#

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

drifting crag
#

"config.applePayEnabled = true" is to show Apple Pay as an option. Isn't this what you're looking for?

peak vessel
#

At a high level here's how I intergrate the customer sheet:

  1. Fetch setup intent from server for customer
  2. Fetch customer from server
  3. Seed StripeCustomerAdapter with revlant keys
  4. Seed STPAPIClient with keys
  5. Configure and instantiate a customer sheet
  6. Wait for StripeCustomerAdapter.fetchPaymentMethods()
  7. Wait for StripeCustomerAdapter.retrievePaymentOptionSelection
  8. Return the sheet and some additional info
drifting crag
#

Could you share an example customer ID (cus_123) which you have a card saved using Apple Pay?

peak vessel
#

Yeah that was the intention for setting config.applePayEnabled equal to true

drifting crag
#

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?

peak vessel
#

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

drifting crag
#

Did you click "Confirm" button to launch the Apple Pay interface?

#

Or nothing happens when you click the "Confirm" button?

peak vessel
#

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.

drifting crag
#

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?

peak vessel
#

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.

drifting crag
#

When you click "Add" button, what do you see? Is it just card only?

peak vessel
#

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

drifting crag
#

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

dry dewBOT
#

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.
peak vessel
#

Thanks, appreciate it.

#

Opened a direct support case.

drifting crag
#

Thanks! We've received the case! We will get back to you once we have an update

peak vessel
#

Thanks, do you know what an approximate timeline to expect is?

drifting crag
#

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

peak vessel
#

Thanks

drifting crag
#

No problem! Happy to help πŸ˜„