retreivePayment method

Future<CreatePaymentResponse> retreivePayment(
  1. int id
)

Retreive payment by ID

Implementation

Future<CreatePaymentResponse> retreivePayment(int id) async {
  final options = PayMongoOptions(
    path: '/payments/$id',
  );

  final response = await get<Map<String, dynamic>>(options);
  return CreatePaymentResponse.fromMap(response);
}