openPaymentOnSDK method
Pass url payment from backend
Implementation
void openPaymentOnSDK(String urlPayment, String type, bool isShowResultScreen) {
if (!checkUrl(urlPayment)) {
throw Exception('URL payment is invalid!');
}
_invokeMethod('openPaymentOnSDK', {
"url": urlPayment,
"type": type,
"isShowResultScreen": isShowResultScreen,
});
}