onSuccess method

void onSuccess(
  1. String data
)

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();
  }
}