Hey guys,
I’m running WC Vendors PRO on a site to provide a vendor store and also running the Ignitiondeck plugin to power a crowdfunding platform on the same site. I would like to use Stripe with both plugins to allow project creators to receive pledges and also to allow vendors to receive commissions on sales.
For the site owners, who are taking a percentage on both vendor and project creator activities, I’ve created a Stripe profile and inside that I’ve created two separate accounts, one for the vendor transactions and one for the crowdfunding transactions. I’ve succesfully set up WC Vendors to work with Stripe and vendors can connect from the vendor dashboard fine.
When project creators try to connect via the Ignitiondeck dashboard, I get the following error after they’ve entered their login details for Stripe and are in the process of being redirected back to the website:
Fatal error: Uncaught exception ‘Exception’ with message ‘Error making StripeOAuth request: (400) Bad Request’ in /home4/ned/public_html/wp-content/plugins/wc-vendors-gateway-stripe-connect/classes/lib/StripeOAuth.class.php:346 Stack trace: #0 /home4/ned/public_html/wp-content/plugins/wc-vendors-gateway-stripe-connect/classes/lib/StripeOAuth.class.php(174): StripeOAuth->getTokens(‘ac_97jv5rHNbQ81…’, false) #1 /home4/ned/public_html/wp-content/plugins/wc-vendors-gateway-stripe-connect/gateway-stripe.php(155): StripeOAuth->getAccessToken(‘ac_97jv5rHNbQ81…’) #2 [internal function]: stripe_check_connect(Object(WP)) #3 /home4/ned/public_html/wp-includes/plugin.php(600): call_user_func_array(‘stripe_check_co…’, Array) #4 /home4/ned/public_html/wp-includes/class-wp.php(386): do_action_ref_array(‘parse_request’, Array) #5 /home4/ned/public_html/wp-includes/class-wp.php(725): WP->parse_request(”) #6 /home4/ned/public_html/wp-includes/functions.php(963): WP->main(”) #7 /home4/ned/public_html/wp-blog-header.php(16): wp() #8 in /home4/ned/public_html/wp-content/plugins/wc-vendors-gateway-stripe-connect/classes/lib/StripeOAuth.class.php on line 346
It looks like it’s trying to connect back to the WC Vendors plugin rather than Ignitiondeck. I’ve checked all the API keys and client IDs for both the plugins and Stripe accounts about a dozen times now and they are definitely paired up correctly: Stripe Vendor Account to WC Vendors plugin and Stripe Crowdfunding Account to Ignitiondeck plugin.
Any idea what could be causing this? I’ve asked for support from both Ignitiondeck and Stripe and I’m hoping that by speaking with everyone I might be able to piece together what’s going wrong here.
Any ideas you have would be greatly appreciated!
Thanks,
Chris.