mirror of
https://github.com/SoPat712/RUSwipeShare.git
synced 2025-08-21 19:08:46 -04:00
hi
This commit is contained in:
@@ -773,7 +773,7 @@ class _BuyScreenState extends State<BuyScreen> {
|
|||||||
// add close button
|
// add close button
|
||||||
ElevatedButton(
|
ElevatedButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
Navigator.pop(context);
|
|
||||||
try {
|
try {
|
||||||
// 1. create payment intent on the server
|
// 1. create payment intent on the server
|
||||||
int price = (SellerPrice*100).toInt();
|
int price = (SellerPrice*100).toInt();
|
||||||
@@ -806,7 +806,7 @@ class _BuyScreenState extends State<BuyScreen> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
await Stripe.instance.presentPaymentSheet();
|
await Stripe.instance.presentPaymentSheet();
|
||||||
|
Navigator.pop(context);
|
||||||
|
|
||||||
},
|
},
|
||||||
child: Text(
|
child: Text(
|
||||||
|
Reference in New Issue
Block a user