Stripe V3 SCA

Open to all! Ask other shopowners for help.
raiwa
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Has thanked: 70 times
Been thanked: 152 times

Re: Stripe V3 SCA

Post by raiwa »

The solution is posted 3-4 messages above.

The module will be updated soon with this fix:
in: includes/payment/stripe_sca.php, replace lines 179-189 with this code:

Code: Select all

        $address = [
          'address_line1' => $GLOBALS['customer_data']->get('street_address', $order->billing),
          'address_city' => $GLOBALS['customer_data']->get('city', $order->billing),
          'address_zip' => $GLOBALS['customer_data']->get('postcode', $order->billing),
          'address_state' => $GLOBALS['customer_data']->get('state', $order->billing),
          'address_country' => $GLOBALS['customer_data']->get('country_iso_code_2', $order->billing),
        ];

        foreach ($address as $k => $v) {
            $content .= '<input type="hidden" id="' . Text::output($k) . '" value="' . Text::output($v ?? '') . '" />';
        }
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27


Join The Code Co-op to get access to your library in the Code Co-op Forum
randers
Member
Posts: 32
Joined: Mon Oct 26, 2020 8:22 pm
Phoenix Version: v1.0.8.16

Re: Stripe V3 SCA

Post by randers »

Updated, but the problem still exists.
Stripe payment still not appear in Checkout if State is set to False in Customer data. Only if set to True. Stipe Payment Zone = --none--
raiwa
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Has thanked: 70 times
Been thanked: 152 times

Re: Stripe V3 SCA

Post by raiwa »

Sorry, I understood wrong and thought that your problem is the same like the previous posted. But it's different.
I have this checked on my teststore and all works as expected.
Please post the exact stripe sca version you are using, your exact Phoenix version and PHP version.
Did this work at some point, or did this never work in your store.
If it worked in the past, what has been changed in the store.
Does it work with the same settings for other payment modules?

Please check also your error log if you see any related messages.
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
raiwa
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Has thanked: 70 times
Been thanked: 152 times

Re: Stripe V3 SCA

Post by raiwa »

Hi @randers,

Thanks for your mail with the details.

I'm sorry to say, but please be more precise when you report errors.
The problem you have is the same as the other user and it is not on the payment page (checkout_payment.php), it is on the checkout_confirmation page (checkout_confirmation.php). You r problem is not that the payment module does not show on the checkout payment page, it's that the card input field doesn't show on the checkout confirmation page, which is quite different.

The fix is like I posted in the above message. I checked again and it works also for the state module completely switched off.

Please check again, maybe you didn't apply the whole code change, or didn't upload and repalce the file or you have a server cache issue.

If you still can't get it to work, post the code you have changed.
Best regards
Rainer
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
raiwa
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Has thanked: 70 times
Been thanked: 152 times

Re: Stripe V3 SCA

Post by raiwa »

Available Stripe SCA 3.0 Version 1.2.0

Compatibility:
Phoenix Cart 1.0.7.12+
Tested with Phoenix Cart 1.0.8.0

1.2.0
- Update for Phoenix 1.0.7.12+
- Fixed error when some address modules are not used/filled in
- Updated code in all modules to match 1.0.8.0 core code base


http://www.oscaddons.com/pub/stripe_sca_v1.2.0.zip
Last edited by raiwa on Tue Mar 16, 2021 2:31 pm, edited 1 time in total.
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
raiwa
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Has thanked: 70 times
Been thanked: 152 times

Re: Stripe V3 SCA

Post by raiwa »

@zeeshop , if you update to the new version 1.2.0, you can revert your modifications in the core customer data state module.
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
zeeshop
Member
Posts: 71
Joined: Sun Jan 10, 2021 11:30 pm
Phoenix Version:
Has thanked: 15 times
Been thanked: 2 times

Re: Stripe V3 SCA

Post by zeeshop »

Thanks for the updated version @raiwa

Just one new error started appearing stopping https://www.site.com/backoffice/modules_content.php to load.

Code: Select all

Parse error: syntax error, unexpected '$' in /homepages/31/d************/htdocs/Live/includes/modules/content/account/cm_account_stripe_sca_cards.php on line 2
Any advise to resolve it please. Thanks
raiwa
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Has thanked: 70 times
Been thanked: 152 times

Re: Stripe V3 SCA

Post by raiwa »

Just comment out the header:

Code: Select all

<?php
  /*
  Id

  CE Phoenix, E-Commerce made Easy
  https://phoenixcart.org

  Copyright (c) 2021 Phoenix Cart

  Released under the GNU General Public LicensE
  */
  
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
raiwa
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Has thanked: 70 times
Been thanked: 152 times

Re: Stripe V3 SCA

Post by raiwa »

It's fixed now in the download package.
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
raiwa
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Has thanked: 70 times
Been thanked: 152 times

Re: Stripe V3 SCA

Post by raiwa »

Available now on my site for download:

v3 SCA Version 1.2.0:
https://www.oscaddons.com/en/free-add-o ... -p-78.html
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27


Join The Code Co-op to get access to your library in the Code Co-op Forum
Locked