#Ajay-Flutter

1 messages · Page 1 of 1 (latest)

whole pivot
#

Hi there, are you using Stripe Checkout in the HTML webview?

stoic wasp
#

@whole pivot
Not CheckOut just transaction

glossy moss
#

what is the "save card option" you refer to? can you explain in more detail what you expect to see and what you see instead?

stoic wasp
glossy moss
#

ok! and what do you see in your app versus what you expected to see?

glossy moss
#

the option will be there if you're using the component with a Customer object and an ephemeral key configured.

stoic wasp
#

yes i created Customer id and Ephemeral key in Nodejs and return those result to html

#

const appearance = { theme: 'stripe'}; //Card appearance stripe,flat,night
var elements = stripe.elements({ appearance, clientSecret: clientSecretValue});
const paymentElement = elements.create("payment");
paymentElement.mount("#payment-element"); //mount payment card

this is my HTML code where i pass customerId and ephemeral key in this HTML Code

glossy moss
#

yeah you are not using our Flutter library then.

#

your screenshot is not what you're actually using, it's entirely different.

stoic wasp
#

Actually for Android and iOS save card feature works perfectly but for flutter web i'm using IFrame html

glossy moss
stoic wasp
#

i already refered this link you mentioned above but it not works

glossy moss
#

you'd need to be much more specific than "it not works" I'm afraid! What code did you use exactly, what did you expect to see on the page, what did you see instead?

stoic wasp
#

for android ios I passed customer ID and ephemeral key like this
Stripe.instance.initPaymentSheet(
paymentSheetParameters: SetupPaymentSheetParameters(
customerId: paymentIntentData["stripeCustomerId"],
customerEphemeralKeySecret: paymentIntentData["ephemeralKey"],
paymentIntentClientSecret: paymentIntentData["token"],
googlePay: paymentIntentData["googlePay"],
applePay: paymentIntentData["applePay"],
merchantCountryCode: paymentIntentData["country"],
merchantDisplayName: paymentIntentData["name"],
currencyCode: paymentIntentData["currency"]));

#

so save card option available but for web i don't know where to pass those keys in html element

glossy moss
#

you don't, that integration doesn't use ephemeral keys, it's different.

#

it doesn't have a checkbox like that

#

so you can't have the same UI with a checkbox, sorry! But the guide I linked describes how all this works for the web.

stoic wasp
#

How to show saved cards for reuse

#

in web

glossy moss
#

it's something you'd have to build yourself, we don't have a component for it like we do in mobile.