Skip to content

package to reduce the effort of getting resposne from a Stripe API

License

Notifications You must be signed in to change notification settings

samrat19/stripe_intent_data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

build status

stripe_intent_data

A new Flutter package to reduce the effort to write stripe codes for making intent and get data from the API Like:

  • Create Customer ID
  • Get payment Intent Data
  • Get Charge Details

Getting Started

Create an Intent

  String stripeSecretKey =
      'sk_test_51I';

  var data = await StripeIntentData(
    currency: 'EUR',
    stripeSecretKey: stripeSecretKey,
  ).getStripeIntent('name', 'email ID', 'amount', 'customer ID if available otherwise null');

Get Charge Details

  String stripeSecretKey =
      'sk_test_51I';

  var data = await StripeIntentData(
    currency: 'EUR',
    stripeSecretKey: stripeSecretKey,
  ).getPaymentDetails(paymentIntentID);

Example to understand the uses cases