prepare($sql); $stmt->execute(); if ($stmt->rowCount() > 0) { // Print a success message jsonSuccess($message = "Payment data updated successfully"); } else { // Print a failure message jsonError($message = "Failed to update payment data"); } ?>