requestPayment method
Implementation
Future<dynamic> requestPayment({required PaymentInfo paymentInfo}) async {
orderId = paymentInfo.orderId;
Map<String, dynamic> payload = paymentInfo.toJson();
payload['amount'] = amount;
payload['successUrl'] = 'tosspayments://payment/flutter/success';
payload['failUrl'] = 'tosspayments://payment/flutter/fail';
return evaluateJavascriptFuture("paymentWidget.requestPaymentForNativeSDK(${jsonEncode(payload)})", 'payment');
}