woocommerce / woocommerce-gateway-stripe

The official Stripe Payment Gateway for WooCommerce
https://wordpress.org/plugins/woocommerce-gateway-stripe/
236 stars 206 forks source link

[4.0.0-rc-1] "Payment processing failed" if there is the character " ' " (apostrophe) in a field #420

Closed trilame closed 6 years ago

trilame commented 6 years ago

Hello! An issue I found while testing the last version of 4.0.0-rc-1. Doesn't happen with 3.2.3.

What I expected

Submit an order successfuly with a " ' " in my name, like "O'Connor"

What happened instead

I click on submit, and I have a "Payment processing failed. Please retry." error. If I remove the " ' ", it works.

It works corrctly with 3.2.3

Steps to reproduce the issue

1) Put a " ' " on at least one of those fields (I tested):

2) Fill the other fields as usual, as well as the Card number (4242 4242 4242 4242 in my case).

3) Try to submit the order

Woocommerce status report:

### WordPress Environment ###

Home URL: https://********
Site URL: https://********
WC Version: 3.2.5
Log Directory Writable: ✔
WP Version: 4.9.1
WP Multisite: –
WP Memory Limit: 256 MB
WP Debug Mode: –
WP Cron: ✔
Language: fr_FR

### Server Environment ###

Server Info: Apache
PHP Version: 7.0.7
PHP Post Max Size: 300 MB
PHP Time Limit: 30
PHP Max Input Vars: 1000
cURL Version: 7.26.0
OpenSSL/1.0.1t

SUHOSIN Installed: –
MySQL Version: 5.6.33
Max Upload Size: 300 MB
Default Timezone is UTC: ✔
fsockopen/cURL: ✔
SoapClient: ✔
DOMDocument: ✔
GZip: ✔
Multibyte String: ✔
Remote Post: ✔
Remote Get: ✔

### Database ###

WC Database Version: 3.2.5
WC Database Prefix: wp_
MaxMind GeoIP Database: ✔
Total Database Size: 22.55MB
Database Data Size: 18.65MB
Database Index Size: 3.90MB
wp_woocommerce_sessions: Data: 0.01MB + Index: 0.00MB
wp_woocommerce_api_keys: Data: 0.00MB + Index: 0.00MB
wp_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB
wp_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB
wp_woocommerce_order_items: Data: 0.01MB + Index: 0.01MB
wp_woocommerce_order_itemmeta: Data: 0.04MB + Index: 0.04MB
wp_woocommerce_tax_rates: Data: 0.00MB + Index: 0.01MB
wp_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB
wp_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB
wp_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.00MB
wp_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB
wp_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB
wp_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB
wp_woocommerce_log: Data: 0.00MB + Index: 0.00MB
wp_commentmeta: Data: 0.00MB + Index: 0.01MB
wp_comments: Data: 0.01MB + Index: 0.01MB
wp_icl_content_status: Data: 0.00MB + Index: 0.00MB
wp_icl_core_status: Data: 0.00MB + Index: 0.00MB
wp_icl_flags: Data: 0.00MB + Index: 0.00MB
wp_icl_languages: Data: 0.00MB + Index: 0.01MB
wp_icl_languages_translations: Data: 0.10MB + Index: 0.10MB
wp_icl_locale_map: Data: 0.00MB + Index: 0.00MB
wp_icl_message_status: Data: 0.00MB + Index: 0.00MB
wp_icl_mo_files_domains: Data: 0.01MB + Index: 0.00MB
wp_icl_node: Data: 0.00MB + Index: 0.00MB
wp_icl_reminders: Data: 0.00MB + Index: 0.00MB
wp_icl_strings: Data: 2.70MB + Index: 2.26MB
wp_icl_string_packages: Data: 0.00MB + Index: 0.00MB
wp_icl_string_pages: Data: 0.00MB + Index: 0.00MB
wp_icl_string_positions: Data: 0.00MB + Index: 0.00MB
wp_icl_string_status: Data: 0.00MB + Index: 0.00MB
wp_icl_string_translations: Data: 2.54MB + Index: 0.83MB
wp_icl_string_urls: Data: 0.00MB + Index: 0.00MB
wp_icl_translate: Data: 0.04MB + Index: 0.00MB
wp_icl_translate_job: Data: 0.00MB + Index: 0.00MB
wp_icl_translations: Data: 0.03MB + Index: 0.07MB
wp_icl_translation_batches: Data: 0.00MB + Index: 0.00MB
wp_icl_translation_status: Data: 0.04MB + Index: 0.00MB
wp_links: Data: 0.00MB + Index: 0.00MB
wp_options: Data: 0.97MB + Index: 0.06MB
wp_postmeta: Data: 1.11MB + Index: 0.29MB
wp_posts: Data: 5.45MB + Index: 0.13MB
wp_revslider_css: Data: 0.10MB + Index: 0.00MB
wp_revslider_layer_animations: Data: 0.00MB + Index: 0.00MB
wp_revslider_navigations: Data: 0.00MB + Index: 0.00MB
wp_revslider_sliders: Data: 0.44MB + Index: 0.00MB
wp_revslider_slides: Data: 4.88MB + Index: 0.00MB
wp_revslider_static_slides: Data: 0.16MB + Index: 0.00MB
wp_termmeta: Data: 0.00MB + Index: 0.01MB
wp_terms: Data: 0.00MB + Index: 0.01MB
wp_term_relationships: Data: 0.00MB + Index: 0.01MB
wp_term_taxonomy: Data: 0.00MB + Index: 0.00MB
wp_usermeta: Data: 0.01MB + Index: 0.02MB
wp_users: Data: 0.00MB + Index: 0.01MB
wp_yith_wcwl: Data: 0.00MB + Index: 0.00MB
wp_yith_wcwl_lists: Data: 0.00MB + Index: 0.01MB

### Post Type Counts ###

attachment: 106
basel_sidebar: 2
cms_block: 8
customize_changeset: 3
mc4wp-form: 1
nav_menu_item: 74
page: 114
portfolio: 3
post: 8
product: 27
product_variation: 22
revision: 570
shop_coupon: 1
shop_order: 39
shop_order_refund: 2
wpcf7_contact_form: 2

### Security ###

Secure connection (HTTPS): ✔
Hide errors from visitors: ✔

### Active Plugins (15) ###

Redux Framework: par Team Redux – 3.6.7.7
XTEMOS Post Types plugin: par  – 1.2
BLAZING WooCommerce Shipment Tracking: par Massoud Shakeri – 1.2.0 – Not tested with the active version of WooCommerce
CMB2: par CMB2 team – 2.2.6.2
Contact Form 7: par Takayuki Miyoshi – 4.9.1
Duplicate Post: par Enrico Battocchi – 3.2.1
Easy Theme and Plugin Upgrades: par Chris Jean – 2.0.0
WPBakery Page Builder: par Michael M - WPBakery.com – 5.4.4
Password Protected: par Ben Huson – 2.1
Really Simple SSL: par Rogier Lankhorst – 2.5.23
Recent Posts Widget Extended: par Satrya – 0.9.9.7
Regenerate Thumbnails: par Alex Mills (Viper007Bond) – 2.3.1
UpdraftPlus - Sauvegarde/Restauration: par UpdraftPlus.Com
DavidAnderson – 1.13.15

WooCommerce Stripe Gateway: par WooCommerce – 4.0.0-rc-1
WooCommerce: par Automattic – 3.2.5

### Settings ###

API Enabled: ✔
Force SSL: ✔
Currency: EUR (€)
Currency Position: right
Thousand Separator: 
Decimal Separator: ,
Number of Decimals: 2
Taxonomies: Product Types: external (external)
grouped (grouped)
simple (simple)
variable (variable)

Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
exclude-from-search (exclude-from-search)
featured (featured)
outofstock (outofstock)
rated-1 (rated-1)
rated-2 (rated-2)
rated-3 (rated-3)
rated-4 (rated-4)
rated-5 (rated-5)

### WC Pages ###

Base boutique: #6 - /boutique/
Panier: #7 - /panier/
Commande: #8 - /commande/
Mon compte: #9 - /mon-compte/
Terms and conditions: #1684 - /conditions-generales-de-vente/

### Theme ###

Name: Basel Child
Version: 1.0.0
Author URL: http://xtemos.com
Child Theme: ✔
Parent Theme Name: Basel
Parent Theme Version: 3.7.0
Parent Theme Author URL: http://themeforest.net/user/xtemos
WooCommerce Support: ✔

### Templates ###

Overrides: basel/woocommerce/archive-product.php
basel/woocommerce/cart/cart.php
basel/woocommerce/cart/cross-sells.php
basel/woocommerce/cart/mini-cart.php
basel/woocommerce/checkout/form-checkout.php
basel/woocommerce/content-product.php
basel/woocommerce/content-product_cat.php
basel/woocommerce/content-single-product.php
basel/woocommerce/global/breadcrumb.php
basel/woocommerce/global/quantity-input.php
basel/woocommerce/loop/loop-end.php
basel/woocommerce/loop/loop-start.php
basel/woocommerce/loop/no-products-found.php
basel/woocommerce/loop/orderby.php
basel/woocommerce/loop/pagination.php
basel/woocommerce/loop/sale-flash.php
basel/woocommerce/myaccount/form-login.php
basel/woocommerce/myaccount/navigation.php
basel/woocommerce/product-searchform.php
basel/woocommerce/single-product/add-to-cart/variable.php
basel/woocommerce/single-product/meta.php
basel/woocommerce/single-product/product-image.php
basel/woocommerce/single-product/product-thumbnails.php
basel/woocommerce/single-product/related.php
basel/woocommerce/single-product/sale-flash.php
basel/woocommerce/single-product/tabs/tabs.php
basel/woocommerce/single-product/title.php
basel/woocommerce/single-product/up-sells.php
basel/woocommerce/single-product.php
roykho commented 6 years ago

Hi @trilame - could you please checkout the 4.0.0-rc-1 again and see if it fixes your issue?

trilame commented 6 years ago

Hi, Did some tests and it works perfectly! Thank you for this very quick fix.