#Rahul Maru-ios-applepay

1 messages ยท Page 1 of 1 (latest)

sand depotBOT
clear socket
#

Hi there!

#

Can you share the related PaymentIntent ID (pi_xxx)?

tardy isle
#

wait let me check

verbal oriole
#

๐Ÿ‘‹ taking over for my colleague. Let me know if there's any follow-up Qs I can answer!

tardy isle
#

pi_3MAYtbFsdWHZFlc31z3hAO5N_secret_Ir6viXVDiiaeyI3v5Tw4xHqQf

#

can you please check

#

pi_3MAYtbFsdWHZFlc31z3hAO5N

#

@verbal oriole are you there

#

@clear socket

verbal oriole
#

@tardy isle I will be with you shortly

tardy isle
#

did you got the issue @verbal oriole

verbal oriole
#

Still looking into it

#

please be patient and will be with you shortly

tardy isle
#

ok

verbal oriole
# tardy isle pi_3MAYtbFsdWHZFlc31z3hAO5N

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

wheat ice
#

we have already tried with different payment card
@verbal oriole

#

but not working

verbal oriole
#

on the same PI?

wheat ice
#

YES

verbal oriole
#

that's not the PI you shared in the screenshot

#

this PI has a diffrent amount

#

and it hasn't been paid yet

wheat ice
#

that screenshot is old

#

but i am facing same error

verbal oriole
#

I can't see any payment attempt on the PI you sent

#

please make sure the PI is correct

wheat ice
#

ok let me try once again

#

@verbal oriole

#

please chel

#

let me know where we are wrong

verbal oriole
#

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?

wheat ice
#

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 {

        }
verbal oriole
#

this PKPaymentSummaryItem(label: "iHats, Inc", amount: 500.00), is wrong

#

since this is generating $500

wheat ice
#

now we have change currency type UAE to USD

#

pi_3MAaSpFsdWHZFlc31wWU0KW4_secret_lVlyulbuwztimzX7Tqrye550R

#

clientSecret id

#

@verbal oriole

#

@verbal oriole are you there?

desert radish
#

Tarzan had to step out but I can help. Catching up on this thread now...

wheat ice
#

ok

desert radish
#

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?

wheat ice
#

let me try with 5.00

wheat ice
#

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

desert radish
#

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

tardy isle
#

we are getting this message requires_payment_method

#

can you please explain what is it

#

@desert radish

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

wheat ice
#

pi_3MAatpFsdWHZFlc31WqbCizm_secret_IRuaAhOScKeR6Da8PyMNwlQdH

desert radish
#

So it sounds like this error happens before the iOS code tries to make a confirm call on the payment intent

wheat ice
#

pi_3MAatpFsdWHZFlc31WqbCizm

desert radish
#

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

tardy isle
#

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

desert radish
#

The creation looks fine, this issue looks like it is entirely client side

flat canopy
#

Rahul Maru-ios-applepay