Skip to content

Instantly share code, notes, and snippets.

@chucktrukk
Created February 23, 2011 14:55
Show Gist options
  • Save chucktrukk/840506 to your computer and use it in GitHub Desktop.
Save chucktrukk/840506 to your computer and use it in GitHub Desktop.
$failedDays = floor((strtotime("now") - strtotime($subscription->transaction_date)) / (60 * 60 * 24));
if (date("Y-m-d",strtotime("now")) == date("Y-m-d", strtotime($subscription->end_date))) {
if (($failedDays % $billingReminderFrequencyInDays) == 0) {
if (in_array(date("j"),$updatePaymentMethodReminderDaysOfTheMonth)) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment