#ortegagroup_api

1 messages ยท Page 1 of 1 (latest)

tardy relicBOT
#

๐Ÿ‘‹ 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/1286002740929232947

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

graceful spindle
#

Hello! Apple Pay is not a payment method type. Apple Pay is a subset of the card payment method type, so specifying card is all that's required in payment_method_types specifically.

#

Let me take a look at the Payment Intent you mentioned...

late jetty
#

Oh okey, that's fine

graceful spindle
#

The only thing that's happened with this Payment Intent is that it's been created. You need to confirm it to actually move money.

#

What are you trying to build? Are you using a guide or tutorial?

late jetty
#

Ok, but what I was analyzing is that when I press pay with Apple Pay, the Apple Pay flow controller is not displayed.

graceful spindle
#

Can you give me many more details? Is this on the web? In an app? What Stripe APIs/UI components/etc. are you using?

late jetty
#

In app for devices iOS, architecture SwiftUI

#

The component that i used is PaymentSheetFlowController

graceful spindle
#

Okay, are you seeing any errors in the debugger related to this issue?

late jetty
#

No, now I compile on a real device to see what happens.

#

How can I set Apple Pay as the default payment method for each registered user?

graceful spindle
#

You can't, really. Apple Pay is a way to provide card details. You can set up those card details for future use as the default for Invoices, for example, but that's after Apple Pay happens.

late jetty
#

Okey

#

Now I compile on a physical device and I see that it comes out in the console.

#

Give me a few minutes

graceful spindle
#

Okay.

late jetty
#

Can I provide the code I used?

graceful spindle
#

Sure.

late jetty
#

Because won't the Apple Pay app open

graceful spindle
#

What happens when you press the Apple Pay button?

late jetty
#

Apple Pay driver does not display.

graceful spindle
#

What shows up in the debugger when you press the button?

late jetty
graceful spindle
#

Those are the debugger logs from Xcode?

late jetty
#

Yes

#

Esto es lo que trato de decir

#

This is what I'm trying to say

#

The payment is processed directly without being able to see the Apple Pay controller to choose a card from the wallet.

graceful spindle
#

Can you give me the Payment Intent ID associated with that screen recording?

late jetty
#

pi_3Q0RRnAZJHGoU7Pr3E2bCCKI

graceful spindle
#

You mentioned the payment was processed "directly" but I'm not seeing the payment being processed at all.

#

It seems like the sheet is being dismissed unexpectedly in your app before any kind of payment can happen. That should be accompanied by an error in the Xcode debugger.

#

Can you add a breakpoint to your code and confirm paymentIntentClientSecret is set to the expected value when the code runs?

late jetty
#

El url del backend es: https://backend-applegends.onrender.com/checkout
El customer del usuario es: cus_QsBeSmXqN2zyMe
Customer id enviado al backend: cus_QsBeSmXqN2zyMe
Publishable key is: pk_test_51PlxwpAZJHGoU7PrzGFFzMQe4uwd52MABafXxNKZuNr9GgtORdFpfhVifFtlKQT9713zFsVdSWrzdjicMVMrlrOj000QOaqSaT
Payment Intent Client Secret is: pi_3Q0RRnAZJHGoU7Pr3E2bCCKI_secret_1d09qTn34UNscKvk7hU5JUjok

These are the debugger messages I get from the backend

graceful spindle
#

Those look correct. Is your onCompletionFlow code being called, or is it not getting that far?

late jetty
#

Oh

#

That's exactly what I was going to say.

#

This code does not call onCompletionFlow

#

The thing is that I'm using a custom button. Can you help me set onCompletionFlow on the button?

tardy relicBOT
graceful spindle
#

You have onSheetDismissed: model.onOptionsCompletionFlow which should be calling model.onOptionsCompletionFlow when the sheet is dismissed. Is that happening?

late jetty
#

I'm trying to implement the following:

#

I think the issue I'm having is with the Apple Pay domain in my Stripe dashboard.

graceful spindle
#

Apple Pay domains only apply to Apple Pay payments on the web, not in an iOS app.

#

Can you answer my question above?

graceful spindle
#

You're 100% certain there are no other details in Xcode's debugger about this?

late jetty
#

No there isn't

graceful spindle
late jetty
graceful spindle
#

I can't read that, can you translate?

late jetty
#

yes

graceful spindle
#

Ah, okay, so that means your app isn't set up to use Apple Pay, which means something went wrong with the steps I linked to above.

late jetty
#

Are the domains that Stripe needs for Apple Pay the merchant domain or the iOS app domain?

graceful spindle
#

Can you go through steps 2โ€“4 from that link above and make sure everything is in place?

#

Again, the domain has absolutely nothing to do with Apple Pay payments in a native app.

#

It's vital to understand that the domain is not involved here at all.

#

What is involved is your Apple Merchant ID, the certificate, and the integration with Xcode as described at the link I shared above.

late jetty
#

Oh okey

graceful spindle
#

How's it going?