requestPayment method
void
requestPayment({
- Key? key,
- BuildContext? context,
- Payload? payload,
- bool? showCloseButton,
- Widget? closeButton,
- BootpayDefaultCallback? onCancel,
- BootpayDefaultCallback? onError,
- BootpayCloseCallback? onClose,
- BootpayDefaultCallback? onIssued,
- BootpayConfirmCallback? onConfirm,
- BootpayAsyncConfirmCallback? onConfirmAsync,
- BootpayDefaultCallback? onDone,
- String? userAgent,
- int? requestType,
override
Implementation
@override
void requestPayment(
{
Key? key,
BuildContext? context,
Payload? payload,
bool? showCloseButton,
Widget? closeButton,
BootpayDefaultCallback? onCancel,
BootpayDefaultCallback? onError,
BootpayCloseCallback? onClose,
BootpayDefaultCallback? onIssued,
BootpayConfirmCallback? onConfirm,
BootpayAsyncConfirmCallback? onConfirmAsync,
BootpayDefaultCallback? onDone,
String? userAgent, //사용되진 않음
int? requestType
}) {
this._callbackCancel = onCancel;
this._callbackError = onError;
this._callbackClose = onClose;
this._callbackIssued = onIssued;
this._callbackConfirm = onConfirm;
this._callbackAsyncConfirm = onConfirmAsync;
this._callbackDone = onDone;
if(payload != null) {
_jsBeforeLoad();
_requestPayment(jsonEncode(payload.toJson()));
}
}