hps / heartland-woocommerce-plugin

Secure Submit Plugin for WooCommerce
GNU General Public License v2.0
13 stars 14 forks source link

Truncate City to 20 characters before sending #203

Open tflight opened 1 year ago

tflight commented 1 year ago

We had a card transaction that failed due to the following error:

SecureSubmit payment failed. Gateway response message: “The value for City can be no more than 20 characters, Please try again after making corrections”

Since WooCommerce allows for cities longer than that and there are cities with valid names longer than that, perhaps the info could be truncated before sending it along for authorization?