onSuccess method
Implementation
void onSuccess(String data) {
var jsonObject = json.decode(data) as Map<String, dynamic>;
var order = jsonObject["order"];
var orderId = order["orderId"] as String;
if(_verifyPayment != null) {
_verifyPayment!(orderId);
_outerDiv?.remove();
}
}