createPaymentUrl method

Future<PaymentUrlResponse> createPaymentUrl(
  1. PaymentRequest request
)

Create a payment URL without launching WebView Useful for custom implementations

Implementation

Future<PaymentUrlResponse> createPaymentUrl(PaymentRequest request) async {
  if (_provider == null) {
    throw StateError('PaymentService not initialized. Call init() first.');
  }

  return await _provider!.createPaymentUrl(request);
}