Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private function discoverOrderIdByRecurring($recurring_payment_id)
- {
- $db = JFactory::getDbo();
- $query = $db->getQuery(true);
- $payment_params_regex = $db->escape('%"recurring_payment_id":"' . $recurring_payment_id . '"%');
- $query->select('id')
- ->from($db->quoteName('#__djc2_orders'))
- ->where($db->quoteName('payment_params') . ' LIKE ' . $db->quote($payment_params_regex));
- $db->setQuery($query);
- return $db->loadResult();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement