#kush_api

1 messages ยท Page 1 of 1 (latest)

boreal micaBOT
#

๐Ÿ‘‹ 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.

void shell
boreal micaBOT
analog grail
#

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?

void shell
#

no. It mounts the Checkout page into an existing HTML page that you're running that code on.

analog grail
#

mm so i need to implement the html and js for stripe checkout?

gritty pollen
#

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

analog grail
#

ohh i see so i will implement the html and js in my code.
is there a github example for this implementation?

analog grail
#

but i want to use the checkout link inside a webview (which is an iFrame)

gritty pollen
#

We generally discourage use of Checkout within webviews/iframes due to issues with wallets and things

analog grail
#

yeah thats the link i followed. i will continue with this.
just need to implement the html + js

gritty pollen
#

If you're building a native mobile application via Flutter you should be using the mobile native UIs, like Payment Sheet

analog grail
#

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?

gritty pollen
#

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

analog grail
#

ok thats good to know

gritty pollen
#

(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

analog grail
#

ok understood.
u also mention i can use Payment Sheet, this is possible to use as embedded?

gritty pollen
#

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

analog grail
#

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.

gritty pollen
analog grail
#

yep exatly, so this is good for android and web?

#

or android also limit the digital goods?

gritty pollen
#

Please try and search the documentation โ€“ a lot of the questions like this are answered there

analog grail
#

ok thank u very much, i will continue my reaserch and try implementing