parsePaymentResponse method

PaymentResponse parsePaymentResponse(
  1. Map<String, dynamic> response
)

Handle payment response from external sources Useful when payment is completed outside the WebView

Implementation

PaymentResponse parsePaymentResponse(Map<String, dynamic> response) {
  if (_provider == null) {
    throw StateError('PaymentService not initialized. Call init() first.');
  }

  return _provider!.parsePaymentResponse(response);
}