WpRentals is ready for the SCA regulations that apply to start from September 2019 in Europe. The new Stripe API is available from theme WpRentals v2.7.
Who can use Stripe
This list covers all currencies supported by Stripe – https://support.stripe.com/questions/which-currencies-does-stripe-support. Check here to confirm if you can create a stripe account in your country – https://stripe.com/global
Publish 1 Stripe Merchant Processor Page
Create ONLY 1 page with this custom template (if you import a demo, it already exists)
This page needs to exist and the link of the page must be copied to the API setup.
Choose SANDBOX (for a test) or LIVE credentials (for production)
API details will be different based on your selection.
Create your stripe account
Create and activate your STRIPE account at – https://stripe.com/
SANDBOX DATA is given automatically and screenshots are made for the SANDBOX version.
For sandbox, tests use Credit Card number: 4242 4242 4242 4242, any date in future, any CVS.
FOR LIVE API – you must follow these instructions first (to activate your account)
Add Webhook URL in Stripe and Copy the Stripe Webhook Secret Key
Webhook URL is your domain link for the stripe page. This is the URL
Pages -> Stripe -> Permalink -> Click Right -> Copy Link Address and Paste this link to -> Stripe ENDPOINT URL field in Stripe Account.
Go to Stripe Dashboard -> Webhooks -> Add Endpoint -> Paste the Link Address for Stripe Page from your site -> Select “Receive All Events” and Add Endpoint
NOTE: The Endpoint URL is your domain URL. Please copy from your domain WordPress Admin -> Pages
Copy the Webhooks -> Select your domain webhook -> Signing Secret id to WPRentals Theme Options -> Stripe Settings -> Stripe Webhook Secret Key
Copy API keys from Stripe to WpRentals Theme Options
Take the API credentials from your Stripe Account -> Developers -> Api Keys and copy them WPRentals Theme Options -> Stripe Settings -> Stripe Secret Key and Stripe Publishable Key
STRIPE and Membership-based submission enabled.
Go to Billing -> Products to create your product (membership package) in Stripe
Copy Stripe Product ID in WpRentals -> Edit Membership
The Stripe product ID is generated automatically after creating the Stripe Product. Save the ID to your Membership Package as in below screenshots:
Copy this Product ID from Stripe
How to cancel a Stripe Subscription
The button “Cancel Stripe Subscription” shows automatically to all users who purchased a membership package through Stripe.
Stripe Fatal error
Fatal error: Uncaught exception ‘Exception’ with message ‘Stripe needs the Multibyte String PHP extension.’ in /home/site/public_html/wp-content/themes/wpestate/libs/stripe/lib/Stripe.php:13 Stack trace: #0 /home/site/public_html/wp-content/themes/wpestate/libs/templates/user_profile.php(164): require_once() #1 /home/site/public_html/wp-includes/template.php(503): require(‘/home/site…’) #2
/home/site/public_html/wp-includes/template.php(477): load_template(‘/home/site…’, false) #3
/home/site/public_html/wp-includes/general-template.php(171): locate_template(Array, true, false) #4 /home/site/public_html/wp-content/themes/wpestate/user-dashboard-profile.php(251): get_template_part(‘libs/templates/…’) #5
/home/site/public_html/wp-includes/template-loader.php(74): include(‘/home/site…’) #6
/home/site/public_html/wp-blog-header.php(16): require_once(‘/home/site…’) #7
/home/site/public_html/i in /home/site/public_html/wp-content/themes/wpestate/libs/stripe/lib/Stripe.php on line 13
The above error message appears because Stripe needs the Multibyte String PHP extension.
This is a server PHP module.
Go to hosting and ask them to enable this PHP module on server please – http://php.net/manual/en/book.mbstring.php
Without it, Stripe will not work.