#romeoEIlam

1 messages · Page 1 of 1 (latest)

deep duneBOT
vestal matrix
#

Hi there!

#

How can I help?

#

@nocturne verge please write here.

nocturne verge
#

Ok

vestal matrix
#

Pasting your messages here:

I updated the pod package to pod 'Stripe','23.7.0'
Now there are few issues in xcode

#

What are the issues exactly?

nocturne verge
#

Declaration of 'StripeAPI' must be imported from module 'StripeCore.Swift' before it is required

#

for [StripeAPI setDefaultPublishableKey:

#
  • I use objective c
vestal matrix
#

Can you clarify exactly what your code is doing? Are you following a specific documentation page? If so, which one?

nocturne verge
#

Yes

#

So in Appdelegate

#

The first registration

#

StripeAPI setDefaultPublishableKey

#

Used to work smoothly so far

#

Now it is throwing this error messsage

vestal matrix
#

Did you import StripeAPI in your code?

nocturne verge
#

Of course

#

It used to work before the update

#

Same with STPApplePayContext *applePayContext = [[STPApplePayContext alloc] initWithPaymentRequest:request delegate:self];

#

btw its seems all the classes in this api is swift and I'm using objective c

#

Maybe it's connected?

vestal matrix
#

Give me a few minutes to look into this...

nocturne verge
#

Cheers

vestal matrix
#

Note that in your screenshots we can see your live secret key. So I recommend deleting the screenshots and maybe roll your keys.

#

I just deleted the screenshot for you.

nocturne verge
#

Sure thanks!

modern girder
#

Hey! Taking over for my colleague.

modern girder
nocturne verge
#

Hi hi

modern girder
#

In general, you can't import systematically a swift package into an objective C project...

#

unless if the package provides both implementation or the Swift class inherits from NSObject AFAIK...

nocturne verge
#

So what can I do

#

I will leave the last version

#

But apple required to update to xcode 14

#

And in this one the last version didn't work

#

This is a shit show

#

The one that I used before was

#

pod 'Stripe', '21.4.0'

modern girder
#

Just a minute, I see in the changelog that there were some fixes related to Objective-C

nocturne verge
#

Cool thanks

#

Let me try this one

#

22.8.0

modern girder
nocturne verge
#

Ok cool

modern girder
#

I think you are missing some import too

#

Can you try add these imports:

@import Stripe;
@import StripeCore;
@import StripeApplePay;
#import <PassKit/PassKit.h>
dusk cloak
#

Hi! I'm taking over my colleague. Please, let me know if you have any other questions.