Custom Subscription Payment Method

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ReddeR
    New Member
    • May 2014
    • 10
    • 5.0.X

    Custom Subscription Payment Method

    I wanna add custom Sub method
    PHP Code:
    <?php

    class vB_PaidSubscriptionMethod_custom extends vB_PaidSubscriptionMethod
    {
        function 
    generate_form_html($hash$cost$currency$subinfo$userinfo$timeinfo)
        {
            
    $form['action'] = 'customURL';
            
    $form['method'] = 'get';

            return 
    $form;
        }
    }

    ?>
    But with this code i have error
    Fatal error: Class 'vB_PaidSubscriptionMethod' not found in /home/*/*/www/includes/paymentapi/class_custom.php on line 4


    I need redirect to custom page after pressing Order Using "Custom"

    How i can do that ?
  • Paul M
    Former Lead Developer
    vB.Com & vB.Org
    • Sep 2004
    • 9886

    #2
    Programming qustions should be asked on the vbulletin.org site.
    Baby, I was born this way

    Comment

    Related Topics

    Collapse

    • Doc55
      Custom Logout Code
      by Doc55
      I am trying to integrate my new vBulletin installation with my current CMS and need to have a custom logout button. How do I get the has code to logout the current user via custom php?...
      Wed 14 Aug '19, 1:43pm
    • Macro Man
      Custom form
      by Macro Man
      I would like to create a suggestion form, which I've done using a static HTML module - but as it's the cloud version and we have no access to the server side is there any way to link this to a custom...
      Fri 10 Jun '16, 1:38am
    Working...