#Rahul Maru-ios-applepay
1 messages ยท Page 1 of 1 (latest)
wait let me check
๐ taking over for my colleague. Let me know if there's any follow-up Qs I can answer!
pi_3MAYtbFsdWHZFlc31z3hAO5N_secret_Ir6viXVDiiaeyI3v5Tw4xHqQf
can you please check
pi_3MAYtbFsdWHZFlc31z3hAO5N
@verbal oriole are you there
@clear socket
@tardy isle I will be with you shortly
did you got the issue @verbal oriole
ok
this PaymentIntent haven't been processed by Stripe at this point, the reason why is that it's failing in the Apple Pay process even before Stripe processing it. As per your screenshot the You need to select a different Payment Card, I'm not sure why it's not working
but this is not really a Stripe integration issue at this point
on the same PI?
YES
that's not the PI you shared in the screenshot
this PI has a diffrent amount
and it hasn't been paid yet
I can't see any payment attempt on the PI you sent
please make sure the PI is correct
ok let me try once again
@verbal oriole
please chel
let me know where we are wrong
there's something wrong here between the 5AED amount in the PaymentIntent and the $500(I presume USD) in the Apple Pay
how are you presenting the Apple Pay payment method?
ok let me try with AED
let paymentRequest = StripeAPI.paymentRequest(withMerchantIdentifier: merchantId, country: "UAE", currency: "AED")
paymentRequest.paymentSummaryItems = [
PKPaymentSummaryItem(label: "iHats, Inc", amount: 500.00),
]
if let applePayContext = STPApplePayContext(paymentRequest: paymentRequest, delegate: self) {
applePayContext.presentApplePay()
} else {
}
this PKPaymentSummaryItem(label: "iHats, Inc", amount: 500.00), is wrong
since this is generating $500
now we have change currency type UAE to USD
pi_3MAaSpFsdWHZFlc31wWU0KW4_secret_lVlyulbuwztimzX7Tqrye550R
clientSecret id
@verbal oriole
@verbal oriole are you there?
Tarzan had to step out but I can help. Catching up on this thread now...
ok
Can you try PKPaymentSummaryItem(label: "iHats, Inc", amount: 5.00), to further test tarzan's theory that this is some mismatch between $5 and $500?
Also are there any error messages happening in your code or is this payment sheet error the only one that you can see?
let me try with 5.00
no ๐ข
let paymentRequest = StripeAPI.paymentRequest(withMerchantIdentifier: merchantId, country: "US", currency: "USD")
paymentRequest.paymentSummaryItems = [
PKPaymentSummaryItem(label: "iHats, Inc", amount: 5.00),
]
if let applePayContext = STPApplePayContext(paymentRequest: paymentRequest, delegate: self) {
applePayContext.presentApplePay(on: self)
} else {
}
trying with this
not working ๐ฆ
pi_3MAamOFsdWHZFlc30e1p9de4_secret_QjPM71mRUnMHT3y0wsP2Ikxv4
@desert radish
please check
i am sending $5 from app side
Gotcha. Thanks for checking. Unfortunately still not even seeing a confirm request on our side. Trying to think of what might be happening here that is still preventing it
we are getting this message requires_payment_method
can you please explain what is it
@desert radish
That is the default status for payment intents. The intent is still in that state because we aren't seeing further calls from you on that payment intent
pi_3MAatpFsdWHZFlc31WqbCizm_secret_IRuaAhOScKeR6Da8PyMNwlQdH
So it sounds like this error happens before the iOS code tries to make a confirm call on the payment intent
pi_3MAatpFsdWHZFlc31WqbCizm
Yep, still nothing after the creation. Trying to think of what else you can try here to see if it works
Have you tried running our iOS sample app? I am wondering if this might be an issue with the wallet itself. So if this card works in the sample app, that would indicate that the issue is in your client side code
stripe.paymentIntents.create({
amount: 50000,
currency: 'usd',
payment_method_types: ['card'],
statement_descriptor: 'Custom descriptor',
})
this data we are sending for create payment intent after that it will give us some id and client-secret which we are using in IOS app
but still faces the same issue
can you please check is this correct or not
for create payment intent
The creation looks fine, this issue looks like it is entirely client side
Hi ๐ I'm jumping in as my teammate needs to step away soon. Can you help me understand whether your integration is using our Mobile Payment Element (first link below) or if you're instead using the Payment Request process to trigger Apple Pay only (second link below)? (or possibly a different approach)
Mobile Payment Element; https://stripe.com/docs/payments/accept-a-payment?platform=ios&ui=payment-sheet
Payment Request: https://stripe.com/docs/apple-pay?platform=ios#accept
Rahul Maru-ios-applepay