Forminator Payment, Quiz and Contact Form Plugin - Version 1.9.1

Version Description

  • Fix: Issue with Stripe keys
Download this release

Release Info

Developer jdailey
Plugin Icon 128x128 Forminator Payment, Quiz and Contact Form Plugin
Version 1.9.1
Comparing to
See all releases

Code changes from version 1.9.0 to 1.9.1

forminator.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Forminator
4
- * Version: 1.9
5
  * Plugin URI: https://premium.wpmudev.org/project/forminator/
6
  * Description: Capture user information (as detailed as you like), engage users with interactive polls that show real-time results and graphs, “no wrong answer” Facebook-style quizzes and knowledge tests.
7
  * Author: WPMU DEV
@@ -34,7 +34,7 @@ if ( ! defined( 'ABSPATH' ) ) {
34
  }
35
 
36
  if ( ! defined( 'FORMINATOR_VERSION' ) ) {
37
- define( 'FORMINATOR_VERSION', '1.9' );
38
  }
39
 
40
  if ( ! defined( 'FORMINATOR_SUI_VERSION' ) ) {
1
  <?php
2
  /**
3
  * Plugin Name: Forminator
4
+ * Version: 1.9.1
5
  * Plugin URI: https://premium.wpmudev.org/project/forminator/
6
  * Description: Capture user information (as detailed as you like), engage users with interactive polls that show real-time results and graphs, “no wrong answer” Facebook-style quizzes and knowledge tests.
7
  * Author: WPMU DEV
34
  }
35
 
36
  if ( ! defined( 'FORMINATOR_VERSION' ) ) {
37
+ define( 'FORMINATOR_VERSION', '1.9.1' );
38
  }
39
 
40
  if ( ! defined( 'FORMINATOR_SUI_VERSION' ) ) {
languages/forminator.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the same license as the Forminator package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Forminator 1.9\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/forminator\n"
7
- "POT-Creation-Date: 2019-09-04 05:49:40+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -12607,7 +12607,7 @@ msgid "Failed to load imported Forminator model"
12607
  msgstr ""
12608
 
12609
  #: library/model/class-custom-form-model.php:229
12610
- #: library/modules/custom-forms/front/front-action.php:441
12611
  msgid "Only logged in users can submit this form."
12612
  msgstr ""
12613
 
@@ -12844,7 +12844,7 @@ msgstr ""
12844
  #: library/modules/custom-forms/form-templates/template-newsletter.php:87
12845
  #: library/modules/custom-forms/form-templates/template-post.php:83
12846
  #: library/modules/custom-forms/form-templates/template-quote.php:150
12847
- #: library/modules/custom-forms/front/front-action.php:1147
12848
  msgid "Error: Your form is not valid, please fix the errors!"
12849
  msgstr ""
12850
 
@@ -12931,37 +12931,37 @@ msgstr ""
12931
  msgid "Request Quote"
12932
  msgstr ""
12933
 
12934
- #: library/modules/custom-forms/front/front-action.php:130
12935
  msgid "Error: Stripe field doesn't exist in your form!"
12936
  msgstr ""
12937
 
12938
- #: library/modules/custom-forms/front/front-action.php:133
12939
  msgid "Error: Form object is corrupted!"
12940
  msgstr ""
12941
 
12942
- #: library/modules/custom-forms/front/front-action.php:136
12943
  msgid "Error: Your form ID doesn't exist!"
12944
  msgstr ""
12945
 
12946
- #: library/modules/custom-forms/front/front-action.php:447
12947
  msgid "This form is not published."
12948
  msgstr ""
12949
 
12950
- #: library/modules/custom-forms/front/front-action.php:480
12951
  msgid "At least one field must be filled out to submit the form."
12952
  msgstr ""
12953
 
12954
- #: library/modules/custom-forms/front/front-action.php:711
12955
  msgid "There was an error saving the post data. Please try again"
12956
  msgstr ""
12957
 
12958
- #: library/modules/custom-forms/front/front-action.php:785
12959
- #: library/modules/custom-forms/front/front-action.php:832
12960
  msgid "Form entry saved"
12961
  msgstr ""
12962
 
12963
- #: library/modules/custom-forms/front/front-action.php:860
12964
- #: library/modules/custom-forms/front/front-action.php:897
12965
  #: library/modules/custom-forms/front/front-render.php:2598
12966
  msgid "SSL required to submit this form, please check your URL."
12967
  msgstr ""
2
  # This file is distributed under the same license as the Forminator package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Forminator 1.9.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/forminator\n"
7
+ "POT-Creation-Date: 2019-09-04 21:05:28+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
12607
  msgstr ""
12608
 
12609
  #: library/model/class-custom-form-model.php:229
12610
+ #: library/modules/custom-forms/front/front-action.php:444
12611
  msgid "Only logged in users can submit this form."
12612
  msgstr ""
12613
 
12844
  #: library/modules/custom-forms/form-templates/template-newsletter.php:87
12845
  #: library/modules/custom-forms/form-templates/template-post.php:83
12846
  #: library/modules/custom-forms/form-templates/template-quote.php:150
12847
+ #: library/modules/custom-forms/front/front-action.php:1150
12848
  msgid "Error: Your form is not valid, please fix the errors!"
12849
  msgstr ""
12850
 
12931
  msgid "Request Quote"
12932
  msgstr ""
12933
 
12934
+ #: library/modules/custom-forms/front/front-action.php:133
12935
  msgid "Error: Stripe field doesn't exist in your form!"
12936
  msgstr ""
12937
 
12938
+ #: library/modules/custom-forms/front/front-action.php:136
12939
  msgid "Error: Form object is corrupted!"
12940
  msgstr ""
12941
 
12942
+ #: library/modules/custom-forms/front/front-action.php:139
12943
  msgid "Error: Your form ID doesn't exist!"
12944
  msgstr ""
12945
 
12946
+ #: library/modules/custom-forms/front/front-action.php:450
12947
  msgid "This form is not published."
12948
  msgstr ""
12949
 
12950
+ #: library/modules/custom-forms/front/front-action.php:483
12951
  msgid "At least one field must be filled out to submit the form."
12952
  msgstr ""
12953
 
12954
+ #: library/modules/custom-forms/front/front-action.php:714
12955
  msgid "There was an error saving the post data. Please try again"
12956
  msgstr ""
12957
 
12958
+ #: library/modules/custom-forms/front/front-action.php:788
12959
+ #: library/modules/custom-forms/front/front-action.php:835
12960
  msgid "Form entry saved"
12961
  msgstr ""
12962
 
12963
+ #: library/modules/custom-forms/front/front-action.php:863
12964
+ #: library/modules/custom-forms/front/front-action.php:900
12965
  #: library/modules/custom-forms/front/front-render.php:2598
12966
  msgid "SSL required to submit this form, please check your URL."
12967
  msgstr ""
library/fields/stripe.php CHANGED
@@ -172,7 +172,7 @@ class Forminator_Stripe extends Forminator_Field {
172
  }
173
 
174
  // Generate payment intent object
175
- $intent = $this->generate_paymentIntent( $currency, $start_amount, $metadata, $desc, $company );
176
  $this->mode = $mode;
177
 
178
  if( isset( $settings['form-font-family'] ) && "custom" === $settings['form-font-family'] ) {
@@ -268,8 +268,8 @@ class Forminator_Stripe extends Forminator_Field {
268
  *
269
  * @return mixed
270
  */
271
- public function generate_paymentIntent( $currency, $amount, $metadata = array(), $description = '', $company = '' ) {
272
- $key = $this->get_secret_key( 'test' !== $this->mode );
273
  \Forminator\Stripe\Stripe::setApiKey( $key );
274
 
275
  $metadata_object = array();
@@ -313,9 +313,9 @@ class Forminator_Stripe extends Forminator_Field {
313
  * @param $secret
314
  * @param $amount
315
  */
316
- public function update_paymentIntent( $id, $amount, $submitted_data, $currency ) {
317
  // Get Stripe key
318
- $key = $this->get_secret_key( 'test' !== $this->mode );
319
 
320
  // Set Stripe key
321
  \Forminator\Stripe\Stripe::setApiKey( $key );
@@ -528,7 +528,7 @@ class Forminator_Stripe extends Forminator_Field {
528
  $currency = self::get_property( 'currency', $field, $this->get_default_currency() );
529
 
530
  // Check Stripe key
531
- $key = $this->get_secret_key( 'test' !== $this->mode );
532
 
533
  // Set Stripe key
534
  \Forminator\Stripe\Stripe::setApiKey( $key );
172
  }
173
 
174
  // Generate payment intent object
175
+ $intent = $this->generate_paymentIntent( $currency, $start_amount, $mode, $metadata, $desc, $company );
176
  $this->mode = $mode;
177
 
178
  if( isset( $settings['form-font-family'] ) && "custom" === $settings['form-font-family'] ) {
268
  *
269
  * @return mixed
270
  */
271
+ public function generate_paymentIntent( $currency, $amount, $mode, $metadata = array(), $description = '', $company = '' ) {
272
+ $key = $this->get_secret_key( 'test' !== $mode );
273
  \Forminator\Stripe\Stripe::setApiKey( $key );
274
 
275
  $metadata_object = array();
313
  * @param $secret
314
  * @param $amount
315
  */
316
+ public function update_paymentIntent( $id, $amount, $mode, $submitted_data, $currency ) {
317
  // Get Stripe key
318
+ $key = $this->get_secret_key( 'test' !== $mode );
319
 
320
  // Set Stripe key
321
  \Forminator\Stripe\Stripe::setApiKey( $key );
528
  $currency = self::get_property( 'currency', $field, $this->get_default_currency() );
529
 
530
  // Check Stripe key
531
+ $key = $this->get_secret_key( 'test' !== $mode );
532
 
533
  // Set Stripe key
534
  \Forminator\Stripe\Stripe::setApiKey( $key );
library/modules/custom-forms/front/front-action.php CHANGED
@@ -114,9 +114,12 @@ class Forminator_CForm_Front_Action extends Forminator_Front_Action {
114
 
115
  if ( $forminator_stripe_field instanceof Forminator_Stripe ) {
116
  $currency = Forminator_Field::get_property( 'currency', $field_array, $this->get_default_currency() );
 
 
117
  $forminator_stripe_field->update_paymentIntent(
118
  $submitted_data['paymentid'],
119
  $pseudo_submitted_data[ $field_id ],
 
120
  $submitted_data,
121
  $currency
122
  );
114
 
115
  if ( $forminator_stripe_field instanceof Forminator_Stripe ) {
116
  $currency = Forminator_Field::get_property( 'currency', $field_array, $this->get_default_currency() );
117
+ $mode = Forminator_Field::get_property( 'mode', $field_array, 'test' );
118
+
119
  $forminator_stripe_field->update_paymentIntent(
120
  $submitted_data['paymentid'],
121
  $pseudo_submitted_data[ $field_id ],
122
+ $mode,
123
  $submitted_data,
124
  $currency
125
  );
readme.txt CHANGED
@@ -1,13 +1,13 @@
1
  === Forminator Payment, Quiz and Contact Form Plugin ===
2
  Plugin Name: Forminator Payment, Quiz and Contact Form Plugin
3
- Version: 1.9.0
4
  Author: WPMU DEV
5
  Author URI: https://premium.wpmudev.org/
6
  Contributors: WPMUDEV
7
  Tags: form, contact form, wordpress form plugin, quiz, email, paypal form wordpress, custom forms, form builder, online form, form maker, payment form
8
  Requires at least: 4.6
9
  Tested up to: 5.2
10
- Stable tag: 1.9.0
11
  Requires PHP: 5.2.4
12
  License: GPL v2 - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
13
 
@@ -32,6 +32,10 @@ Forminator’s drag and drop visual builder makes it easy to setup and add forms
32
 
33
  Start taking payments with Forminator. No Pro upgrade required! SCA compliant Stripe and PayPal come included. Just plugin in your publish keys to activate the Forminator payment module for both fixed and variable payments.
34
 
 
 
 
 
35
  ### Calculations are a Lead Magnet
36
 
37
  There are literally thousands of combinations for adding value to your site with Calculations:
@@ -90,6 +94,20 @@ You don’t want your inbox flooded with a bunch of form spam. Google ReCAPTCHA
90
 
91
  Forminator stores and organizes submissions so you can sort, analyze and manage responses – of course, all while making it super easy to comply with the GDPR and other legal privacy policies.
92
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
93
  ### Shameless Plug(ins)
94
  Love Forminator! WPMU DEV has some other awesome free plugins you should checkout.
95
 
@@ -121,6 +139,18 @@ Forminator currently includes integration with the Stripe payment gateway and Pa
121
 
122
  Yes! Forminator is not managing the payment processing. We worked with Stripe and PayPal to ensure the built-in integrations follow the EU's Strong Customer Authentication regulations (PSD2).
123
 
 
 
 
 
 
 
 
 
 
 
 
 
124
  == Screenshots ==
125
 
126
  1. Setup WordPress contact forms in seconds.
@@ -133,6 +163,10 @@ Yes! Forminator is not managing the payment processing. We worked with Stripe an
133
 
134
  == Changelog ==
135
 
 
 
 
 
136
  = 1.9 =
137
 
138
  * Add: Stripe compatibility with SCA
1
  === Forminator Payment, Quiz and Contact Form Plugin ===
2
  Plugin Name: Forminator Payment, Quiz and Contact Form Plugin
3
+ Version: 1.9.1
4
  Author: WPMU DEV
5
  Author URI: https://premium.wpmudev.org/
6
  Contributors: WPMUDEV
7
  Tags: form, contact form, wordpress form plugin, quiz, email, paypal form wordpress, custom forms, form builder, online form, form maker, payment form
8
  Requires at least: 4.6
9
  Tested up to: 5.2
10
+ Stable tag: 1.9.1
11
  Requires PHP: 5.2.4
12
  License: GPL v2 - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
13
 
32
 
33
  Start taking payments with Forminator. No Pro upgrade required! SCA compliant Stripe and PayPal come included. Just plugin in your publish keys to activate the Forminator payment module for both fixed and variable payments.
34
 
35
+ Learn how to start taking payments with Forminator in this video tutorial.
36
+
37
+ [youtube https://www.youtube.com/watch?v=Yrq88IJa2VM&feature=youtu.be]
38
+
39
  ### Calculations are a Lead Magnet
40
 
41
  There are literally thousands of combinations for adding value to your site with Calculations:
94
 
95
  Forminator stores and organizes submissions so you can sort, analyze and manage responses – of course, all while making it super easy to comply with the GDPR and other legal privacy policies.
96
 
97
+ ###What Do People Say About Forminator?
98
+
99
+ ★★★★★
100
+ > Amazing plugin, it really seems that only your imagination can limit its uses. Loads of features like taking payments, calendar, for free. Can’t believe everything I need is in there, it sparks creativity and makes it fun to work on a website. – [araca](https://wordpress.org/support/users/araca/)
101
+
102
+ ★★★★★
103
+ >This plugin has an excellent, well-thought-out, well-designed UI and offers everything I was looking for (and I think I’ve tried every serious competitor). – [tvsmvp](https://wordpress.org/support/users/tvsmvp/)
104
+
105
+ ★★★★★
106
+ >This plugin is the best free form builder by far! I have researched many but this is so easy to use... Try it. I am SURE you will LOVE IT. – [johncarteroz](https://wordpress.org/support/users/johncarteroz/)
107
+
108
+ ★★★★★
109
+ >Great interface design, super easy to use and great functionality. I don’t normally write reviews, but I loved it so much, I just had to this time! – [istavridi](https://wordpress.org/support/users/istavridi/)
110
+
111
  ### Shameless Plug(ins)
112
  Love Forminator! WPMU DEV has some other awesome free plugins you should checkout.
113
 
139
 
140
  Yes! Forminator is not managing the payment processing. We worked with Stripe and PayPal to ensure the built-in integrations follow the EU's Strong Customer Authentication regulations (PSD2).
141
 
142
+ = How do I create a contact form in WordPress with Forminator? =
143
+
144
+ We've put together a simple guide to Forminator contact forms on our blog. https://premium.wpmudev.org/blog/build-contact-form/
145
+
146
+ = I want to develop for Forminator! Where can I find API documentation? =
147
+
148
+ [developer API](https://premium.wpmudev.org/docs/wpmu-dev-plugins/forminator-api-docs/?utm_source=wordpress.org&utm_medium=readme&utm_campaign=forminator-readme&utm_content=developer_api)
149
+
150
+ = Where can I get Forminator docs? =
151
+
152
+ [https://premium.wpmudev.org/docs/wpmu-dev-plugins/forminator/](https://premium.wpmudev.org/docs/wpmu-dev-plugins/forminator/?utm_source=wordpress.org&utm_medium=readme&utm_campaign=forminator-readme&utm_content=docs_link)
153
+
154
  == Screenshots ==
155
 
156
  1. Setup WordPress contact forms in seconds.
163
 
164
  == Changelog ==
165
 
166
+ = 1.9.1 =
167
+
168
+ * Fix: Issue with Stripe keys
169
+
170
  = 1.9 =
171
 
172
  * Add: Stripe compatibility with SCA