Jump to content

Disable invoice reminders only on active subscriptions

Recommended Posts

I'm having a huge problem with people setting up a subscription when buying hosting. about half of them are paying again when they get an invoice reminder and I'm sending refunds back like crazy which are costing me fees in paypal.


There is no need for an invoice reminder for active subscriptions, how can I disable this only for active subscriptions?


I'd like to keep sending invoice reminders for people without active subscriptions and overdue subscriptions so they're reminded to pay manually.

Share this post

Link to post
Share on other sites

would changing the email template wording be an option - as detailed in the thread below?




other than that, you'll be looking at writing an action hook to intercept the applicable emails before they're sent.

Share this post

Link to post
Share on other sites

Hi there Brian,


Yes, I've made these adjustments in my email templates. I saw this right after I posted this thread and I think this will work just fine.



Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • By yemiadejuwon
      Hi there,
      I have some services setup and would like to bill just a setup fee for the first month and a monthly fee for subsequent months. I tried doing this but it doesn't work correctly -- right now, my new clients are billed both setup fee and monthly when they signup instead of just the setup fee at sign up.
      Is there any way I can configure a $0 fee just for the first month so my clients just need to pay for setup fee on first month and then pay a monthly subscription from the second month?
      I run version 5.2.16.
    • By Danomanic
      This was just a quick module I wrote to show PayPal Subscriptions within my WHMCS installation.
      I also tried to come up with a way of showing PayPal Subscriptions that haven't been cancelled, but the service had (so the customer may still be paying for a service they no longer have).
      It's quite easy to install:
      1) Download the ZIP from here
      2) Upload the contents of to /modules/addons/paypalsubscriptions
      3) Login to WHMCS -> Addon Modules -> PayPal Subscritions Module -> Activate
      4) Addons -> PayPal Subscriptions
      Version: 1.0
      GitHub: https://github.com/Danomanic/WHMCSPayPalSubscriptions
      Issues/Suggestions: https://github.com/Danomanic/WHMCSPayPalSubscriptions/issues
      Download: https://github.com/Danomanic/WHMCSPayPalSubscriptions/archive/master.zip
      - - - Updated - - -
      To-do (what I'm working on):
      - Add a button which will make a call to the PayPal API, and cancel the subscription when clicked.
      - Cancel PayPal subscriptions automatically when the client cancels their service.
    • By Nathum
      I thought I would share that I managed to do this, and should help out others.
      The topic that did it for me.
      So in the module I created under the function terminate. I used the API to get the product details of the service. This gave me the subscription ID. I then run the PayPal function which terminated the subscription.

      //// SUSPEND PAYPAL PAYMENTS //// $command = "getclientsproducts"; $adminuser = "whmusername"; $values["clientid"] = $params['clientsdetails']['userid']; $values["serviceid"] = $params["serviceid"]; $values["responsetype"] = "xml"; $PRODUCTARRAY = localAPI($command,$values,$adminuser); $SUBSCRIPTIONID = $PRODUCTARRAY[products][product][0]['subscriptionid']; change_subscription_status( $SUBSCRIPTIONID, 'Cancel' ); //// SUSPEND PAYPAL PAYMENTS ////
      PayPal Function

      /** * Performs an Express Checkout NVP API operation as passed in $action. * * Although the PayPal Standard API provides no facility for cancelling a subscription, the PayPal * Express Checkout NVP API can be used. */ function change_subscription_status( $profile_id, $action ) { $api_request = 'USER=' . urlencode( 'api_username' ) . '&PWD=' . urlencode( 'api_password' ) . '&SIGNATURE=' . urlencode( 'api_signature' ) . '&VERSION=76.0' . '&METHOD=ManageRecurringPaymentsProfileStatus' . '&PROFILEID=' . urlencode( $profile_id ) . '&ACTION=' . urlencode( $action ) . '&NOTE=' . urlencode( 'Profile cancelled at store' ); $ch = curl_init(); curl_setopt( $ch, CURLOPT_URL, 'https://api-3t.sandbox.paypal.com/nvp' ); // For live transactions, change to 'https://api-3t.paypal.com/nvp' curl_setopt( $ch, CURLOPT_VERBOSE, 1 ); // Uncomment these to turn off server and peer verification // curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, FALSE ); // curl_setopt( $ch, CURLOPT_SSL_VERIFYHOST, FALSE ); curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 ); curl_setopt( $ch, CURLOPT_POST, 1 ); // Set the API parameters for this transaction curl_setopt( $ch, CURLOPT_POSTFIELDS, $api_request ); // Request response from PayPal $response = curl_exec( $ch ); // If no response was received from PayPal there is no point parsing the response if( ! $response ) die( 'Calling PayPal to change_subscription_status failed: ' . curl_error( $ch ) . '(' . curl_errno( $ch ) . ')' ); curl_close( $ch ); // An associative array is more usable than a parameter string parse_str( $response, $parsed_response ); return $parsed_response; }
      Hope this helps and saves plenty of time and $$$
      Feel free to improve it. Like if subcription == ' '
  • Recently Browsing   0 members

    No registered users viewing this page.


Important Information

By using this site, you agree to our Terms of Use & Guidelines