Is it possible to add a php code snippet to make Stripe Set up Optional for vendors who want to publish a free listing ? :
A vendor come for the first time on the platform > He wants to publish a listing > If the “price” filed is either empty or equal to 0 > the “go to Stripe Button” is replaced by “publish”.
To make it clear : Everyone can freely publish listings as long as the price field is empty or free.
When they want to put a price for the first time, then they have to set up their Stripe Account (which will not have to be done afterwards of course).
Unfortunately there’s no easy way to do this at the moment, it may be possible to disable the redirect completely (leaving only the Set up Stripe link on the account page), but vendors adding premium listings may forget to set it up.
Thank you yevhen for this snippet, it works perfectly for me !
Indeed vendors can forget to register their Stripe Account so I take that risk
Before closing this topic I have an additional question regarding Stripe, is it normal that the loading time for acceding Stripe after clicking “Manage your Stripe Account” is pretty long ? Or even inaccessible because of multiple redirects?
This is the same if you want to “return to the platform”.
It should be pretty fast, but you can try disabling plugins and customizations to detect the reason. When you click the Manage Stripe Account link, HivePress sends an API request to Stripe to generate a login link for a user, waits for this link to be returned from Stripe and redirects to it.
Everything works like an escrow. All payments are transferred to the site owner and then (if you use stripe connect) automatically transferred to the vendor’s account from the site owner’s stripe connect.