#thiagomacauba88-applepay
1 messages ยท Page 1 of 1 (latest)
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
can you share the full podfile?
sure
I don't think you need that.
it's just pod 'Stripe' I think
https://github.com/stripe/stripe-ios/blob/master/MIGRATING.md#migrating-from-versions--21120
If you are using CocoaPods or Swift Package Manager, these dependencies will be imported automatically.
I also don't have that explicitly in the Podfile for my own working apps either
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
I'd try doing a complete clean build of your app and clearing the build cache in XCode and so on
worked?
awesome!
thanks!
just more one question
what would be this
let merchantIdentifier = "merchant.com.your_app_name"
my bundle?
it's the merchant ID you create in your Apple Developer account
https://stripe.com/docs/apple-pay?platform=ios#merchantid for example, you have to register an ID with Apple and then you configure your XCode project to use that ID and set it in the code
so, it's always the same
for the same app, yes
for testing, the same method i need to call is the
didCreatePaymentMethod?
the view just showed up
thanks
Nice! So your setup here is all good now? Or are you asking about how to utilize the didCreatePaymentMethod call here?
Nice! Glad you could figure it out
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
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?
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
Hello ๐
Catching up here, give me a moment and I'll respond as soon as I can ๐ Thanks