- This topic has 1 reply, 2 voices, and was last updated 3 years, 1 month ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › How to set Buy Now to use Stripe instead of PayPal in Payment Gateway bundle
Tagged: buy now, php function, Stripe default
I’m currently using the print_eStore_buy_now_button function available through the plugin EXTRA short codes.
I just want to do the same thing with the default as Stripe instead of PayPal.
I’ve seen a short code example that shows how to specify Stripe with a Buy Now button but can’t find a PHP function to do the same.
I wondered if there was an undocumented variant of show_wp_eStore_product_fancy to do it but discovered to my surprise that, although documented, I get an error to say that show_wp_eStore_product_fancy is undefined – even when other functions of Extra short codes are working. So that was a non starter. Maybe that’s a bug?
I’ve seen and used a code example to use in the function.php file for the case of Add to Cart but nothing similar for buy now.
So, is there a way to have a PHP function for Buy Now with Stripe as the default?
Have you seen the documentation on Gateway Specific Buy Now Buttons? You can also use URL links in existing code.