10/25/1
This commit is contained in:
@@ -33,6 +33,25 @@ class CRUD {
|
||||
}
|
||||
}
|
||||
|
||||
Future<dynamic> postStripe({
|
||||
required String link,
|
||||
Map<String, dynamic>? payload,
|
||||
}) async {
|
||||
var url = Uri.parse(
|
||||
link,
|
||||
);
|
||||
var response = await http.post(
|
||||
url,
|
||||
body: payload,
|
||||
headers: {
|
||||
"Content-Type": "application/x-www-form-urlencoded",
|
||||
'Authorization': 'Bearer ${StripeKey.secretKey}',
|
||||
},
|
||||
);
|
||||
|
||||
return response.body;
|
||||
}
|
||||
|
||||
Future<dynamic> post({
|
||||
required String link,
|
||||
Map<String, dynamic>? payload,
|
||||
|
||||
Reference in New Issue
Block a user