mirror of
https://github.com/SoPat712/RUSwipeShare.git
synced 2025-08-21 10:58:47 -04:00
killme
This commit is contained in:
@@ -773,10 +773,11 @@ class _BuyScreenState extends State<BuyScreen> {
|
||||
// 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");
|
||||
|
Reference in New Issue
Block a user