#hamza-riaz_code

1 messages ยท Page 1 of 1 (latest)

topaz skiffBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1425105256014155846

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

sand needle
#

hi there!

solid idol
#

Hi

sand needle
#

can you clarify what is the issue with the code you shared? are you getting en error message? if so, which one?

topaz skiffBOT
solid idol
#

so, i tried to pass whole object that i received thorugh applepay (onpaymentauthorized) , but i getting error {
"error": {
"message":
"Invalid token id: {"data":"XnbZhxsNPnMzKMQ/r4/TO1v0lIX36Vok6Gfqi2+YJsvk5rE1fK4VNccbg9jARrvbTZDWtS7ABYWTD5A7hjci8oPH6BS...ransactionId":"7d33ed49c3db8c605c57592158dc8b2fd28a2e6a0de107f9738675199f5e5647"},"version":"EC_v1"}",
"param":
"token",
"request_log_url":
"https://dashboard.stripe.com/test/logs/req_nzUS4W4bqk3sWu?t=1759479382",
"type":
"invalid_request_error",
},
}

#

but when try to confirm payment intent i got this error

No such PaymentMethod: '{"data":"E5suGMcw+5laBPdnk9+J0nEttdT+gU7bddStPfXIHEO+chfS1XOQSnksnZjyZ7mr9YVTgL5GZL/8jkBbg+qq7wewIjDOjD60W7cpSnD1/oJrHwAFGBnT/L6/6BaOdI3McGfKLIMotBz3fDquATmyCvS8+wvj2YjmwwlB9aHn9BLlZY43tRjv9fvZL/4SkmBAaU2XhONOJCVRRVw0MHHYmj2FPASnGvGFovp7p2Beu9cdogDw2zOPexGQBeY7I9JiXDftESKocsaCSWmcgF/9lx4DWC7ykkyokV9bH70GqBVP0OQeSb1dSQpaVljX9NCJr2bPt+UMw2jtFG2caBAvTOAJv27cThmNVUpf0KQTiNagNBw2/1u/Rho7cKkDAxKKmqEvMHTYA4qAMUsV/IcagI3bBKWf0zgZev7pRc8=","signature":"MIAGCSqGSIb3DQEHAqCAMIACAQExDTALBgl...(truncated)...a80qhvyZVSLrUfuQzFlIilMAoGCCqGSM49BAMCBEgwRgIhANbt6W1Jk+hOyRjVyUCbKLScUAwRVOy6dzw743+NPc1qAiEApAsVUWfuVTrNqE3t5+xOUq7Rl/Ux2imV4Z0juVh1NcEAAAAAAAA=","header":{"publicKeyHash":"L5oG7a57Ovx7ytLEj7HfmCBsVdFPsls5EM7gF5B/geM=","ephemeralPublicKey":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE0K9/ir48JrndaJMm2Cjxcyzv1w977KsZPKPCoTntjZFisT8sC//rlvQJech7nUw15kZeJent65egvcd+CcWgBA==","transactionId":"5aca51d8bd24ad13d65cd599230d5e82c25f0c217d8d42090278a1f4eb3e6ba2"},"version":"EC_v1"}'

#

basically i don't know the flow how to charge user in stripe after apple pay, so i tried to create stripe token also and got below erro r

{
"error": {
"code":
"parameter_unknown",
"doc_url":
"https://stripe.com/docs/error-codes/parameter-unknown",
"message":
"Received unknown parameters: version, header, signature, data",
"param":
"card[version]",
"request_log_url":
"https://dashboard.stripe.com/test/logs/req_GEwgXK6PrXmCkQ?t=1759841013",
"type":
"invalid_request_error",
},

Learn more about Stripe API error codes and how to resolve them.

gleaming cobalt
#

hey there, just stepping in as soma needs to step away

#

can you tell me more about this:

i implemented apple pay according to apple instructions
and
onpaymentauthorized
Is that a native/direct apple pay integration? If so, that's not how we recommend integrating with Stripe.

solid idol
#

yes , i did direct apple pay integration, because i want to show users QR(by apple)(on non-safari browsers) to scan and pay through mobile.

#

like this .

#

if i do integration through stripe, will it work like this ?

gleaming cobalt
#

We have support for that on web on macos, but in the ios SDK as far as i know, since it doesnt really make sense there

#

but now I think I misread something, is this a web app then, not a native mobile app?

solid idol
#

Yes, I am working on web

gleaming cobalt
#

Gotcha, ok just a second

gleaming cobalt