Last active
March 20, 2020 23:15
-
-
Save hamza39460/67e437dc666471cae5342f24cee29e91 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) { | |
double amount=100*100.0; // multipliying with 100 to change $ to cents | |
INTENT.call(<String, dynamic>{'amount': amount,'currency':'usd'}).then((response) { | |
confirmDialog(response.data["client_secret"],paymentMethod); //function for confirmation for payment | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment