#.lonestarx

1 messages · Page 1 of 1 (latest)

hexed daggerBOT
dusky crater
#

Hi there!

#

Can you share more context on what is the issue you are trying to solve exactly?

hushed mist
#

hey, had some talks yesterday with bismark and some other people

#

apple pay doesn't show up

#

payment sheet dismisses, but apple pay window doesn't come up so payment sheet just comes back

dusky crater
#

Can you share any error message you see in your logs, or the things you already tryied to debug this?

hushed mist
#

no errors in logs

#

just shows up as status canceled

dusky crater
hushed mist
#

yes

#

could it be stripeAccount and appinfo nil an issue?

distant osprey
#

Hey! Taking over for my colleague. Let me catch up.

#

Are you facing this in test or live mode ?

hushed mist
#

no but it was working before

#

this is live mode

#

it's annoying because on simulator apple pay does show up

#

but on real device it doesn't

distant osprey
#

What was happening/changed before it was working ?

hushed mist
#

probably something in the dashboard but i don't have access there

#

i'm wondering if i can identify the issue from the app

#

perhaps somewhere i can breakpoint in the PKP methods

distant osprey
#

You need to check the certificate in your Stripe Dashboard

hushed mist
#

it's not expired

distant osprey
#

You may need to regenerate new one

#

You need to double check in you Stripe Dashboard

hushed mist
#

i see..

#

wouldn't there be an error somewhere if there's an issue with the certificate?

distant osprey
#

There should be an error in the logs on your Ios devices

#

Try adding as much logs as possible

#

Double check your code changelog

#

Lastly you may want to test on another device

hushed mist
#

it happens on every device

#

there's nothing to log, i'm just presenting the paymentsheet

#

this is all i'm doing

distant osprey
#

What about the logs in your xcode of the device ?

hushed mist
#

there is no log

#

nothing shows up

distant osprey
#

In that case you have something dismmissing the payment sheet

#

I invite you to reproduce the issue on the sample I shared with you

#

and share with us how we can reproduce on our side

hushed mist
#

paymentsheet example seems to be missing project file

#

ah nvm it's a big workspace back

hexed daggerBOT
hushed mist
#

when i tried the sample ExampleSwiftUIPaymentSheet apple pay button is not visible

#

logs say

onyx temple
#

try passing a meaningful merchantID like "merchant.com.my.test" . If you're on a simulator I believe you can pass any string, but maybe they validate that it has to "look right". If this is on a physical device, you have to use the actual merchant ID you created in your Apple Developer account and are using in your XCode profile.

hushed mist
#

i am on a device, i replaced all the info (customer id, intent, pkey, merchand display name etc) from my live app

#

but ahhh... wait

#

i know the issue

#

i changed the bundle id of the sample to something else

#

ok changed it to the live app's bundle id, added apple pay capability with my merchant id

#

i see the button now

#

same issue tho

#

apple pay gets canceled

#

so it must be something dashboard related, right?

onyx temple
#

not sure what you mean by Dashboard-related.

added apple pay capability with my merchant id
and did you update the PaymentSheet.Configuration().merchantDisplayName to match?

if you think it's an issue with the certs on your account and want us to look, what is your account ID? https://stripe.com/docs/payments/account#find-account-id

hushed mist
#

acct_1N3K6wBFxmePog8R

onyx temple
#

thanks, and the other question about the merchantDisplayName?
you're using merchant.eu.d*****.mobile everywhere?

hushed mist
#

yes

#

mobile.prod btw

onyx temple
#

you say that but the only two certs you uploaded to Stripe are for merchant.eu.d****.mobile and merchant.eu.d****.mobile.debug just FYI

hushed mist
#

welp... i guess this is why it doesn't work

onyx temple
#

well I'm not sure it is, since I think the certs only matter when submitting the payment information to Stripe(i.e after the customer enters the information in the Apple Pay sheet and hits the pay button inside it). But it probably doesn't help overall

#

the certs are so we can decrypt the Apple Pay payload that the app sends to our API.
In any case, what does your minimal reproduction ViewController look like right now, can you share the code?

hushed mist
#

i just tested

#

on the sample and yep.. this is the issue

#

it's fixed now

#

the merchant id string difference

#

thanks!!!