Is it possible to delete an entry if a payment status is set to pending?
Something like this would be great:
function retrieve_guests_payment($entry) {
$entries = RGFormsModel::get_leads(1, '', 'DESC', '', '0', '99999999');
foreach ($entries as $entry){
if($entry['payment_status'] == 'Pending'){
// delete entry
}
}
}