1- Remove your current version of stripe-woocommerce-addon and install a fresh version from repository please
2- This was an major update so you need to go to plugin settings and add your Publishable keys that were introduced in this version 1.0.6
3-Comment out line no 363 to 371 that is where shipping is being taken the shipping section looks like as below
'shipping' => array(
'address' => array(
'line1' => $wc_order->shipping_address_1,
'line2' => $wc_order->shipping_address_2,
'city' => $wc_order->shipping_city,
'state' => $wc_order->shipping_state,
'country' => $wc_order->shipping_country,
'postal_code' => $wc_order->shipping_postcode
),
Make sure you let me know how it goes and please make sure you leave a review on plugin as well donations keep me motivated if you earn from my source code you should support it as well hope you dont mind
Thread Starter
GHES
(@gail-hastings)
I’m unable to see why, but the debugging error now reads: Parse error: syntax error, unexpected ‘)’ in /[…]wp-content/plugins/stripe-woocommerce-addon/stripe-woocommerce-addon.php on line 377
Line 377 is the closing );
I commented out line 374 as well, which allowed the site to load.
Retried transaction, returns to debugging error: ‘Undefined index: stripe_token in /[…]/wp-content/plugins/stripe-woocommerce-addon/stripe-woocommerce-addon.php on line 346’
Maybe, contrary to WooCommerce’s procedures (i.e. their recommended use of functions to disable fields), you can’t get rid of unnecessary fields for a gateway to work.
did you follow 1- Remove your current version of stripe-woocommerce-addon and install a fresh version from repository please even its 1.0.6
Thread Starter
GHES
(@gail-hastings)
Yes, followed the first instruction, deleted previous version and re-downloaded the plugin from WordPress.
All the Stripe API keys are added. I even had the site owner check if there were new updated version of his Stripe keys, but no.
Let me try some things.
It could be jquery conflict and token created on stripe is not being passed to and received here $token_id = sanitize_text_field($_POST[‘stripe_token’]);
Sorry for wrong info earlier i made a mistake in pasting the code for you realized later the section that need to be commented is as below
'shipping' array(
'address' => array(
'line1' => $wc_order->shipping_address_1,
'line2' => $wc_order->shipping_address_2,
'city' => $wc_order->shipping_city,
'state' => $wc_order->shipping_state,
'country' => $wc_order->shipping_country,
'postal_code' => $wc_order->shipping_postcode
),
'name' => $wc_order->shipping_first_name.' '.$wc_order->shipping_last_name,
'phone'=> $wc_order->billing_phone
)
GHES were you able to figure out this ?
Thread Starter
GHES
(@gail-hastings)
This is truly the best Stripe/WooCommerce plugin as I did get it to work brilliantly before.
This time, though, it’s different and after your first response I did stuff around some more, but we decided to ditch the whole WooCommerce side of things to use Stripe directly.
Thanks heaps for your assistance,you’ve been on the ball the whole time. I expect your solution above with help someone else.
Thanks