createQuote method
Implementation
@override
Future<Map> createQuote(String token, String paymentCurrencyCode,
String settlementCurrencyCode, String type) async {
final baseUrl = await getBaseUrl;
var url = Uri.parse("$baseUrl/api/v1/pa/quotes/create");
var bodyData = {
"payment_currency": paymentCurrencyCode,
"settlement_currency": settlementCurrencyCode,
"type": type
};
var jsonBody = jsonEncode(bodyData);
var response = await http.post(
url,
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer $token"
},
body: jsonBody,
);
var data = jsonDecode(response.body);
return data;
}