Skip to content

Commit

Permalink
Merge pull request #1798 from Codeinwp/feat/form-stripe-complet
Browse files Browse the repository at this point in the history
Add Stripe Form Field & Temporary Submission Saving
  • Loading branch information
HardeepAsrani authored Sep 2, 2023
2 parents 3af254d + 22edc4f commit 01a4e17
Show file tree
Hide file tree
Showing 49 changed files with 2,765 additions and 421 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ todo.md
artifacts
*.results.json
trace.json
license.json
license.json
.fleet
3 changes: 3 additions & 0 deletions blocks.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@
"form-hidden-field": {
"block": "blocks/blocks/form/hidden-field/block.json"
},
"form-stripe-field": {
"block": "blocks/blocks/form/stripe-field/block.json"
},
"google-map": {
"block": "blocks/blocks/google-map/block.json",
"assets": {
Expand Down
21 changes: 11 additions & 10 deletions inc/class-registration.php
Original file line number Diff line number Diff line change
Expand Up @@ -498,16 +498,17 @@ function() {
'root' => esc_url_raw( rest_url() ),
'nonce' => wp_create_nonce( 'wp_rest' ),
'messages' => array(
'submission' => __( 'Form submission from', 'otter-blocks' ),
'captcha-not-loaded' => __( 'Captcha is not loaded. Please check your browser plugins to allow the Google reCaptcha.', 'otter-blocks' ),
'check-captcha' => __( 'Please check the captcha.', 'otter-blocks' ),
'invalid-email' => __( 'The email address is invalid!', 'otter-blocks' ),
'already-registered' => __( 'The email was already registered!', 'otter-blocks' ),
'try-again' => __( 'Error. Something is wrong with the server! Try again later.', 'otter-blocks' ),
'privacy' => __( 'I have read and agreed the privacy statement.', 'otter-blocks' ),
'too-many-files' => __( 'Too many files loaded. Maximum is: ', 'otter-blocks' ),
'big-file' => __( 'File size is to big. The limit is: ', 'otter-blocks' ),
'invalid-file' => __( 'Invalid files type. The submitted files could not be processed.', 'otter-blocks' ),
'submission' => __( 'Form submission from', 'otter-blocks' ),
'captcha-not-loaded' => __( 'Captcha is not loaded. Please check your browser plugins to allow the Google reCaptcha.', 'otter-blocks' ),
'check-captcha' => __( 'Please check the captcha.', 'otter-blocks' ),
'invalid-email' => __( 'The email address is invalid!', 'otter-blocks' ),
'already-registered' => __( 'The email was already registered!', 'otter-blocks' ),
'try-again' => __( 'Error. Something is wrong with the server! Try again later.', 'otter-blocks' ),
'privacy' => __( 'I have read and agreed the privacy statement.', 'otter-blocks' ),
'too-many-files' => __( 'Too many files loaded. Maximum is: ', 'otter-blocks' ),
'big-file' => __( 'File size is to big. The limit is: ', 'otter-blocks' ),
'invalid-file' => __( 'Invalid files type. The submitted files could not be processed.', 'otter-blocks' ),
'confirmingSubmission' => __( 'Confirming submission', 'otter-blocks' ),
),
)
);
Expand Down
Loading

0 comments on commit 01a4e17

Please sign in to comment.