#kush_api
1 messages ยท Page 1 of 1 (latest)
๐ 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/1283379131308048457
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi! it's the initEmbeddedCheckout functions as described at https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=embedded-form#mount-checkout , in a web page. I'm not aware of this being supported in any native mobile surfaces ,only web pages using stripe.js.
yes, on the mobile im using the native stores, just for web im using stripe.
and i realize i cannot use hosted checkout links due to rules and restrictions from stipe which allow embedded chkout inside an iFrame
so as i understand i need to use the initEmbeddedCheckout and this will return a URL i can present?
no. It mounts the Checkout page into an existing HTML page that you're running that code on.
mm so i need to implement the html and js for stripe checkout?
im trying to use this package (https://pub.dev/packages/flutter_stripe) to save time but it seems there is no "initEmbeddedCheckout" there
Yes, because that Flutter SDK is a wrapper around our mobile native SDKs which don't support Checkout
There is no concept of a mobile native Checkout as my colleague stated
If you want to use Checkout in a mobile app, you'll need to redirect to a browser
ohh i see so i will implement the html and js in my code.
is there a github example for this implementation?
but i want to use the checkout link inside a webview (which is an iFrame)
We generally discourage use of Checkout within webviews/iframes due to issues with wallets and things
yeah thats the link i followed. i will continue with this.
just need to implement the html + js
If you're building a native mobile application via Flutter you should be using the mobile native UIs, like Payment Sheet
ohh thats important information
i did on the mobile, im using the native InAppPurchases
the stripe case is only for web as u cant use google and apple store, and we dont want ๐
is there a link i can see that stripe is discourage use of checkout within webview/iframe?
I don't believe that is publicly documented no, it's just from our experience of helping people with various issues who have done the same
ok thats good to know
(the 3DS/auth challenge flows don't work with some banks, Google Pay/Apple Pay can have quirky behaviour)
It's just not recommended overall. If you need to use Checkout then it should be in a non-webview browser
ok understood.
u also mention i can use Payment Sheet, this is possible to use as embedded?
Yes it's a native UI that is 'embedded' directly into your application UI
https://docs.stripe.com/payments/accept-a-payment?platform=android
Flutter SDK, which wraps our iOS and Android SDKs, uses that UI by default I think
Worth noting that the Flutter is not an official Stripe library โ it is built and maintained by a third-party so we don't know details on how it works
is this ok to use due to rules of iOS and Android? if i remember correctly apple and google not allowing to purchase subscription on the different payment then the naitve store.
There's details on this here: https://docs.stripe.com/apple-pay?platform=ios#using-stripe-and-apple-pay-versus-in-app-purchases
TLDR, you can't use Stripe for sale of digital goods in Apple apps
yep exatly, so this is good for android and web?
or android also limit the digital goods?
Please try and search the documentation โ a lot of the questions like this are answered there
ok thank u very much, i will continue my reaserch and try implementing