Skip to content

Instantly share code, notes, and snippets.

@hamza39460
Created March 20, 2020 23:05
Show Gist options
  • Save hamza39460/f810c8ac9d4749d799397209b870b498 to your computer and use it in GitHub Desktop.
Save hamza39460/f810c8ac9d4749d799397209b870b498 to your computer and use it in GitHub Desktop.
Payment Via Flutter
StripePayment.paymentRequestWithCardForm(CardFormPaymentRequest())
.then((paymentMethod) {
setState(() {
_isLoading = true;
});
_paymentMethod = paymentMethod;
getAmount();
var result = INTENT.call(<String, dynamic>{'amount': _rem}).then((re) {
_currentSecret = re.data["client_secret"];
confirmDialog();
//confirmPayment(re.data["client_secret"],paymentMethod);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment