createPaymentButtonRequest method
Implementation
Future<http.Response> createPaymentButtonRequest(
PaymentRequest paymentRequest) async {
var url = Constant.baseURL + Constant.createPayment;
final response = await http.post(Uri.parse(url),
body: jsonEncode(paymentRequest.toMap()),
headers: {
"Content-Type": "application/json",
"accept": "application/json",
"x-api-key": SwirepaySdk.secretKey
});
return response;
}