Created
March 20, 2020 23:05
-
-
Save hamza39460/f810c8ac9d4749d799397209b870b498 to your computer and use it in GitHub Desktop.
Payment Via Flutter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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