getPaymentMethod method
Implementation
@override
Future<Map> getPaymentMethod(String token, String paymentMethodId) async {
final baseUrl = await getBaseUrl;
var url = Uri.parse("$baseUrl/api/v1/pa/payment_methods/$paymentMethodId");
var response = await http.get(
url,
headers: {"Authorization": "Bearer $token"},
);
var data = jsonDecode(response.body);
return data;
}