stripe_checkout_web

Creator: coderz1093

Last updated:

0 purchases

stripe_checkout_web Image
stripe_checkout_web Images

Languages

Categories

Add to Cart

Description:

stripe checkout web

//How to use
import 'package:stripe_checkout_web/stripe_checkout_web.dart';
\n \n
//this function should be called at server \n \n
var sessionId = await getSessionIdFromServer(amount, currency, name, secretKey);
//this function should be called from client \n \n
await redirectToStripeCheckout(context, publishableKey, sessionId, onSuccess: {print("Success")}, onCancel: {print("onCancel")}, onError: {print("onError")});
\n \n \n
Learn more about checkout in Stripe docs
\n \n \n
Web
In web, the website is redirected automatically to the checkout stripe url. And it will go back to the successUrl or canceledUrl defined on your server when creating the checkout session

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.