diff --git a/lib/buy.dart b/lib/buy.dart index 7eb550d..48c7fe3 100644 --- a/lib/buy.dart +++ b/lib/buy.dart @@ -773,10 +773,11 @@ class _BuyScreenState extends State { // add close button ElevatedButton( onPressed: () async { + Navigator.pop(context); try { // 1. create payment intent on the server - - var Ddata = await http.get(Uri.parse('http://172.20.10.2:5000/payment-sheet?price=50')); + int price = (SellerPrice*100).toInt(); + var Ddata = await http.get(Uri.parse("http://172.20.10.2:5000/payment-sheet?price=" + price.toString())); var data = jsonDecode(Ddata.body); print("wtf");