diff --git a/README.md b/README.md index b30a53b..b2ac926 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Stripe payment gateway for Restrict Content Pro, using [Stripe Elements](https:/ ## Usage -1. Download the zip +1. Download the [latest release](https://github.com/TomodomoCo/rcp-stripe-elements/releases/latest) 2. Install the plugin 3. Activate the plugin 4. ... diff --git a/class-rcp-payment-gateway-stripe-elements.php b/class-rcp-payment-gateway-stripe-elements.php index 16f054a..7c34fff 100644 --- a/class-rcp-payment-gateway-stripe-elements.php +++ b/class-rcp-payment-gateway-stripe-elements.php @@ -38,6 +38,15 @@ public function fields() { ), ) ); + // Set `form_id` if on RCP Update Billing page + if ( rcp_elements_is_update_card_page() !== false ) { + $form_id = apply_filters( 'rcp_elements_update_form_id', 'rcp_update_card_form' ); + + // Set `form_id` if on RCP Registration page + } else { + $form_id = apply_filters( 'rcp_elements_registration_form_id', 'rcp_registration_form' ); + } + ob_start(); ?>