subscription plan in stripe cannot be created

This topic contains 14 replies, has 3 voices, and was last updated by  Kiran 6 years, 6 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #1501

    Eileen Quick
    Buyer
    Post count: 165

    Hi There

    I am getting the following message when testing out the stripe payment system. I have a full licence for wpgeodirectory and addons

    The subscription plan in Stripe could not be created, please try again.

    I looked into this a bit further and found that it was included with my annual licence.

    In the stripe manager licence area I added the url for however I noticed that the licence number there was different to the licence number that is actually greyed out on the plugin.

    I tried to change the plugin one but there is no option to do that and I could not find a way of changing.

    I am probably doing something wrong but there are no instructions on the plugin page and from the plugin if you select go to plugin page it goes to a 404.

    Could you please advice

    Many thanks.

    Kind regards

    #1504

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    Be sure that you have downloaded the correct Stripe gateway from here: https://wpinvoicing.com/your-account/

    Once the plugin is activated, simply complete setup of WP Invoicing and add your keys to the Stripe gateway.

    If you have trouble with the license keys found here, please try them one more time by adding the keys one at a time and saving: https://wpinvoicing.com/your-account/

    If all the setup is complete and you still get an error, let us know.

    #1515

    Eileen Quick
    Buyer
    Post count: 165

    Hi Alex

    I tried adding them one at a time and saving but it still did not work.

    I have version 1.0.1 which appears to be the latest version.

    Kind regards

    #1516

    Alex Rollin
    Moderator
    Post count: 27815

    We would be happy to take a look at your settings to see if we can find the problem.

    To allow us to examine the site, please create a private reply and include all the information listed below so we can make a complete diagnosis.

    WordPress Credentials
    WP Admin Login URL:
    WP Admin Username:
    WP Admin Password:

    #1517

    Eileen Quick
    Buyer
    Post count: 165
    This reply has been marked as private.
    #1518

    Alex Rollin
    Moderator
    Post count: 27815

    I tried to validate the credentials but got: ERROR: The username or password you entered is incorrect

    Are you still getting the error?

    “The subscription plan in Stripe could not be created, please try again.”

    Please provide complete credentials so we can diagnose the issue:

    WordPress Credentials
    WP Admin Login URL:
    WP Admin Username:
    WP Admin Password:

    FTP is optional, but can be very helpful
    FTP Credentials
    FTP Host:
    FTP Port:
    FTP User:
    FTP Password:

    #1519

    Eileen Quick
    Buyer
    Post count: 165
    This reply has been marked as private.
    #1520

    Kiran
    Moderator
    Post count: 7069

    Hi Eileen,

    This issue happened due to changes in recent Stripe API from Stripe Team.

    We have already upgraded our plugin with recent Stripe API changes. Please provide us FTP credentials to apply patch or wait for next release of Invoicing Stripe.

    OR
    do following to apply patch from your side.

    – Open file \plugins\wpinv-stripe-payment\includes\stripe-functions.php in text editor
    – Search following line (around line 936)

    $plan_id = wpinv_stripe_create_plan( $args );

    – Add following lines after that line

    
    
    		if ( empty( $plan_id ) ) {
    			$args['product'] = array(
    				'id' => $id,
    				'name' => $args['name']
    			);
    			unset( $args['name'] );
    
    			$plan_id = wpinv_stripe_create_plan( $args );
    		}

    Take backup before updating.

    Let us know.

    Thanks,
    Kiran

    #1521

    Eileen Quick
    Buyer
    Post count: 165

    Hi Kiran

    I tried that but unfortunately it breaks the site. Surely this would have affected other people as well and not just me. I have the latest plugin v 1.01 so when was it upgraded as the one in my account is dated Aug 2017 as being the last update.

    Unless I am misunderstanding you.

    The line is at 890

    I have attached the relevent php file.

    Kind regards

    Eileen

    #1522

    Eileen Quick
    Buyer
    Post count: 165

    ahh ok I cannot upload the .php file but I have downloaded a fresh copy of the file and it is the same as the one I have.

    #1523

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    #1524

    Eileen Quick
    Buyer
    Post count: 165
    This reply has been marked as private.
    #1526

    Kiran
    Moderator
    Post count: 7069

    Attached file with applying a patch.

    #1528

    Eileen Quick
    Buyer
    Post count: 165

    Hi Kiran

    Thats great thank you, it works a treat. Is the patch going to be applied to the next plugin update?

    Kind regards

    Eileen

    #1529

    Kiran
    Moderator
    Post count: 7069

    Yes, it will be in next update too.

Viewing 15 posts - 1 through 15 (of 15 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket