getPaymentDetails method

  1. @override
Future<PaymentResponse> getPaymentDetails(
  1. String id
)
override

Returns the details of the payment with the specified identifier string.

If the payment method requires a redirection to a third party (e.g., 3D Secure), the redirect URL back to your site will include a cko-session-id query parameter containing a payment session ID that can be used to obtain the details of the payment, for example: http://example.com/success?cko-session-id=sid_ubfj2q76miwundwlk72vxt2i7q

Implementation

@override
Future<PaymentResponse> getPaymentDetails(String id) async {
  http.Response response = await apiBase.call(
    RESTOption.get,
    resource: _payments,
    headers: headers,
  );

  return PaymentResponse.fromJson(response.body);
}