Stripe is unable to generate a subscription

This topic contains 12 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
  • Author
    Posts
  • #1482

    Richard Parry
    Buyer
    Post count: 121

    Hello – I get the following error when I pay for a listing recurring payment of £1.

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

    I have checked with Stripe and they say that this is an error with the plugin. Can you help please?

    Many thanks,

    Richard

    Invoicing – Stripe Payment Gateway

    #1484

    Alex Rollin
    Moderator
    Post count: 27815

    Please triple check your API keys and make sure all the Invoicing pages are set. Also check that your plugins are all up to date.

    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.

    Add listing for purchase
    Demo card info:

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

    FTP Credentials
    FTP Host:
    FTP Port:
    FTP User:
    FTP Password:

    #1485

    Richard Parry
    Buyer
    Post count: 121
    This reply has been marked as private.
    #1487

    Alex Rollin
    Moderator
    Post count: 27815
    This reply has been marked as private.
    #1488

    Richard Parry
    Buyer
    Post count: 121
    This reply has been marked as private.
    #1491

    Kiran
    Moderator
    Post count: 7069

    Hi Richard,

    This has been already fixed. See https://wpgeodirectory.com/support/topic/listing-status-before-payment-has-been-made/#post-420539

    Please provide FTP credentials to apply patch or wait for next release of Invoicing Stripe.

    Thanks,
    Kiran

    #1493

    Richard Parry
    Buyer
    Post count: 121
    This reply has been marked as private.
    #1494

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

    Richard Parry
    Buyer
    Post count: 121
    This reply has been marked as private.
    #1496

    Richard Parry
    Buyer
    Post count: 121
    This reply has been marked as private.
    #1497

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

    Richard Parry
    Buyer
    Post count: 121
    This reply has been marked as private.
    #1499

    Kiran
    Moderator
    Post count: 7069

    Hello,

    – 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.

    Thanks,
    Kiran

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

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

Open Support Ticket