Saved cards for Stripe
The Stripe gateway has always saved cards inside Stripe, but we’ve never had a UI within Restrict Content Pro that allowed customers to select these cards for new purchases; customers have always had to re-enter their card details for each transaction. We’re thrilled to announce that version 3.3 will allow existing customers to select a saved card to use when upgrading, downgrading, or manually renewing their membership.
This option also extends to the [rcp_update_card] shortcode. When updating the payment method for a Stripe subscription, the customer will be able to choose a saved card or enter a new card.
We hope this will allow for much easier and faster registrations for your existing customers.
Braintree 3D secure support
After adding 3D secure support for Stripe, we turned our focus to Braintree. There are a number of Braintree-related changes in the 3.3 release, including:
- The Braintree SDK has been updated.
- We’ve changed our implementation to use the Braintree drop-in UI.
- The drop-in UI gives us built-in support for using saved Braintree cards for additional purchases.
- We’ve added support for 3D secure 2.0.
The drop-in UI may be a big visual change, but it will allow us to more easily consider adding support for alternative payment methods through Braintree in the future (such as PayPal payments through Braintree).
In order to utilize 3D secure, it needs to be enabled in your Braintree account. It’s automatically enabled for sandbox accounts, but you will need to contact Braintree to have it enabled in your live account.
Once enabled, some customers may see a 3D secure prompt like this while their card is being processed:
New report for membership counts over time
We’ve added a new admin report that graphs your number of memberships with each status over time. In order to accurately track this information each day, we’ve added a new database table called wp_rcp_membership_counts. Each day Restrict Content Pro runs a cron job that counts the number of memberships for each level and in each status and records those numbers in the database table. These values then generate a graph much like this:
This graph allows you to get a picture of the overall status of your membership site over a period of time. Are active memberships trending up or down? How does your number of expired memberships this month compare with last month?
Unfortunately, as this table has only just now been added, historical data is not available. But the numbers will start getting logged as soon as you upgrade to version 3.3, and then you’ll have all the information available from here on out!
Support for reCAPTCHA v3
Once upgrading, you will have the option of enabling reCAPTCHA version 3. In order to remain fully backwards compatible with supporting version 2, you may select your desired version number in Restrict → Settings → Misc.
If you were previously using v2 and decide to switch to v3, you will need to generate a new set of keys from the reCAPTCHA website and update your settings accordingly.
Unlike v2, which shows an “I’m not a robot” checkbox, reCAPTCHA v3 is nearly invisible on your site. When enabled, all your customers will see is a reCAPTCHA logo in the bottom right corner of the page. Your customers do not have to interact with it at all. Google then uses a scoring system to determine how likely it is that the user is a real person.
This is a great option if you want the help of reCAPTCHA to prevent spam without inconveniencing your customers.
- New template file: card-update-form-fields.php
- Modified template files: card-update-form.php, register-total-details.php
- New: Added support for using saved Stripe cards for new purchases.
- New: Updated the Braintree SDK, added support for the drop-in UI, and added support for 3D secure.
- New: Added support for reCAPTCHA v3. This can be enabled in Restrict → Settings → Misc by changing the version number. You will also need to generate v3 keys.
- New: When in test mode, test credit card numbers are now displayed in the registration form for supported gateways. This allows for easier and faster testing. This can optionally be disabled with this filter:
add_filter( 'rcp_show_test_card_on_registration', '__return_false' );
- New: Added
RCP_GATEWAY_SANDBOX_MODEconstant. This allows you to force sandbox mode to always be enabled. Recommended on staging sites.
- New: The membership next renewal date is now displayed in the registration form.
- Improvement: Attempt to auto-style the Stripe Elements field, using styles on existing on-site checkout fields.
- Improvement: Our discounts database code has been rewritten to use our new custom table engine. This resulted in a number of discount classes being deprecated and new classes/functions being introduced. All changes should be fully backwards compatible.
- Improvement: Code changes that allow for payment gateways to override the card update form.
- Fix: If someone applies a one-time 100% off discount code and does not sign up with auto renew, their expiration date is incorrectly set to “never expires”.
- Fix: Always set the
typeattribute on all admin text input fields. This fixes a display inconsistency in WordPress 5.3+.
- Fix: Invalid HTML markup with Stripe Elements.
Upgrade to version 3.3
Version 3.3 is available today. The update can be installed directly from the Plugins page for all customers with a valid license. Do not have a license yet or need to renew a license? Head over to the pricing page to purchase one or to your account page to renew an existing license.