#a.r.1

1 messages ยท Page 1 of 1 (latest)

hazy quarryBOT
signal jewel
#

Hello! Are you seeing any other errors/anything else jumping out in your logs?

versed stirrup
#

hi, not really

signal jewel
#

How are you currently setting your API key in your code?

versed stirrup
#

I'm loading it just before presenting the payment sheet in await function.

#

It was working perfectly before migration, that's why I'm thinking it might be not my fault, but still not sure ๐Ÿ™‚

signal jewel
#

Can you show me how you're setting it?

versed stirrup
signal jewel
#

Hmmm.... you're getting this error when you're presenting the payment sheet, right?

#

Are you currently using payment sheet with ephemeral keys?

versed stirrup
#

yes, we are

signal jewel
#

Have you confirmed that your ephemeral key creation requests are successful?

versed stirrup
#

I've removed ephemeral keys from parameters and see the same error, so it shouldn't be related.

signal jewel
#

Can you show me your paymentsheet presenting code?

versed stirrup
#

At entrypoint of this function publishable key is already loaded and set.

signal jewel
#

and it's the call to paymentSheet.present that'd failing, right?

#

And that code still does have ephemeralKey - is that intential?

versed stirrup
#

yeah, i've commented it when built

#

yes, present is failing

signal jewel
#

Hmm... can you share a paymentIntent ID I can take a look at? And can you also share the code for stripePaymentElementBuilder.buildPaymentSheet ?

versed stirrup
#

I've got paymentResult = .failed with error I've sent you abovev

#

sure

#

paymentIntentID you mean payment secret value?

signal jewel
#

That would work, yes

versed stirrup
#

pi_3NO1o3Hnen00B3RT0zFiNIgs_secret_YxiIUPQgCHgGex1OB1Byr5E7Z

hazy quarryBOT
signal jewel
#

When you switched from cocoapods to SPM did you also upgrade to a different version of the stripe-ios library?

versed stirrup
#

ok looks like I figured out what's going on, we didn't link some of the libraries with the binary (only linked Stripe and when I linked StripePaymentsUI and StripePaymentSheet it started working)

signal jewel
#

ahhhh that makes sense! glad you were able to figure it out

versed stirrup
#

i was so confused with the error I got though ๐Ÿ™‚

#

Anyway thank you for all your help