WP Rentals is fully compliant with the new SCA (Strong Customer Authentication) regulations, effective from September 2019 in Europe. The new Stripe API integration is available starting with WP Rentals version 2.7.
Who can use Stripe
Stripe supports a wide range of currencies. To check if Stripe supports your currency, visit:
Supported Currencies by Stripe.
To verify if you can create a Stripe account in your country, visit:
Stripe Global Availability.
Publish 1 Stripe Merchant Processor Page
- Create 1 page with the custom template for Stripe (this page is already created if you import a demo).
- Ensure only 1 page exists; delete any duplicates, even from Trash.
- Copy the link of this page for use in the API setup.
Choose API Credentials:
- SANDBOX (for testing) or LIVE (for production).
- Note: API details will vary depending on your selection.
Steps to Create Stripe Keys:
Step 1: Create and Activate Your Stripe Account
- Go to Stripe to create and activate your account.
- For LIVE API, complete the onboarding process as described here:
Activate Stripe Account. - The SANDBOX API Key is automatically provided.
Step 2: Define Webhook
- Go to Developers > Webhooks.
- Click + Add endpoint.
- Add the Stripe URL page URL (with the stripe processor template) from your site to track all transactions.
- Select Receive all events to get notifications for all events.
- Click Add endpoint.
- Copy the Signing Secret Key and paste it into your website.
- Click receive all events to get all events selected
- Click the Add endpoint button
- Copy Signing secret key in your site
Step 3: Copy API Credentials
- Go to Developers > API keys in your Stripe dashboard.
- Copy both the Publishable Key and Secret Key.
Step 4: Enter API Credentials in WP Rentals
- Go to Theme Options > Membership > Stripe Settings.
- Paste the copied keys into the respective fields.
STRIPE and Membership-based submission enabled.
Create Your Product (Membership Package) in Stripe:
- Go to Product Catalog in Stripe and add a new product.
Set up the Product Name (Membership name), Price, and Billing Interval to match the package settings in WP Rentals.
Add price information. Set the Currency, Price per package and billing interval to match the package settings from theme.
After creating the Stripe product, the Stripe Product ID will be generated automatically.
Link the Stripe Product ID to Your Membership Package:
- Copy the Stripe Product ID and paste it into the membership package in WP Rentals under Edit Membership.
How to cancel a Stripe Subscription
The “Cancel Stripe Subscription” button will automatically appear for users who have purchased a membership package through Stripe.
Stripe Fatal error
Error Message:
Fatal error: Uncaught exception ‘Exception’ with message ‘Stripe needs the Multibyte String PHP extension.’ in ...
Cause:
The error occurs because Stripe requires the Multibyte String PHP extension to function properly.
Solution:
- Contact your hosting provider and request that they enable the Multibyte String PHP extension on your server.
PHP Manual – Multibyte String - Without this PHP module, Stripe will not work correctly.