#thiagomacauba88-applepay

1 messages ยท Page 1 of 1 (latest)

idle wren
#

hi! could you share the full error and the code that triggers it?

cursive island
#

Hi Karllekko

#

sure

idle wren
#

can you show me your imports from the top of the file as well?

#

ultimately though this looks like a problem with your overall project set up like how you installed the Pods or package in your XCode project, it's a bit hard to debug here

cursive island
#

I'm using cocoapods

#

pod 'StripeApplePay'

idle wren
#

can you share the full podfile?

cursive island
#

sure

idle wren
#

I don't think you need that.

cursive island
#

I don't need the StripeApplePay pod?

idle wren
#

it's just pod 'Stripe' I think

cursive island
#

just removed StripeApplePay

#

the same :/

#

in the version 21.12 we have ApplePay

#

Installing Stripe (21.12.0)
Installing StripeApplePay (21.12.0)
Installing StripeCore (21.12.0)
Installing StripeUICore (21.12.0)

#

but still the same

idle wren
#

I'd try doing a complete clean build of your app and clearing the build cache in XCode and so on

cursive island
#

worked?

idle wren
#

awesome!

cursive island
#

thanks!

#

just more one question

#

what would be this

#

let merchantIdentifier = "merchant.com.your_app_name"

#

my bundle?

idle wren
#

it's the merchant ID you create in your Apple Developer account

cursive island
#

so, it's always the same

idle wren
#

for the same app, yes

cursive island
#

for testing, the same method i need to call is the

#

didCreatePaymentMethod?

#

the view just showed up

#

thanks

raven burrow
#

Nice! So your setup here is all good now? Or are you asking about how to utilize the didCreatePaymentMethod call here?

cursive island
#

got it the flow

#

if i have any more question i let you know

#

thanks

raven burrow
#

Nice! Glad you could figure it out

cursive island
#

any example about the didCreatePaymentMethod

#

?

#

because in my current implemtentation i need to do this

#

let paymentMethodCardParams = STPPaymentMethodCardParams(cardSourceParams: cardParams)

        let billingDetails = STPPaymentMethodBillingDetails()
        let paymentMethodParams = STPPaymentMethodParams(card: paymentMethodCardParams, billingDetails: billingDetails, metadata: nil)

        // Step 1: Collect card information - https://stripe.com/docs/payments/payment-intents/ios#collect-card-info-manual
        STPAPIClient.shared.createPaymentMethod(with: paymentMethodParams) { (paymentMethod, error) in
raven burrow
#

Good question. Looking in to it. Are you running in to an error with those calls or are you just wondering how didCreatePaymentMethod fits in?

cursive island
#

just wondering

#

because i have the createPayment implemented without the applepay, and if i use the same i need this parameters and inside the applepay flow i don't have it

spice root
#

Hello ๐Ÿ‘‹
Catching up here, give me a moment and I'll respond as soon as I can ๐Ÿ™‚ Thanks