Support » Plugin: FB GoCardless Hosted for Gravity Forms » Gravity forms not recognising the integration

  • I’ve added

    define( ‘FB_GF_GOCARDLESS_HOSTED_READWRITE_TOKEN’, ‘insert-token-here’ );
    define( ‘FB_GF_GOCARDLESS_HOSTED_ENVIRONMENT’, ‘live’ );

    to my wp-config file but within the admin area, it’s still asking for the details to be added and the Gravity form is submitting normally rather than via GoCardless

    Is there anything else I need to be checking for? I’ve added a product field with a ‘user defined amount” fielsd and populated dynamically (I haven’t set up a redirect)

    Any help would be really useful. Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author seuser

    (@seuser)

    Hi there!

    That is all that is needed. You can see the code here checking for just those two constants.

    To check if these are defined, in any template you could test like so:

    print 'FB_GF_GOCARDLESS_HOSTED_ENVIRONMENT' . ( defined( 'FB_GF_GOCARDLESS_HOSTED_ENVIRONMENT' ) ? ' is defined' : ' is not defined');
    print 'FB_GF_GOCARDLESS_HOSTED_READWRITE_TOKEN' . ( defined( 'FB_GF_GOCARDLESS_HOSTED_READWRITE_TOKEN' ) ? ' is defined' : ' is not defined');

    Thanks,
    Scott

    Plugin Author seuser

    (@seuser)

    You’ll by the way want to make sure it’s using single quotes and not an apostrophe (the installation instructions page on WordPress.org automatically converts single quotes to apostrophes unfortunately).

    kenrichman

    (@kenrichman)

    yep! glad I read that about the single quotes, been puzzling this for about an hour. Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Gravity forms not recognising the integration’ is closed to new replies.