Stripe Payment

Set up Stripe to current API - Stripe Payment

Set up Stripe to current API

by mhsuffolk » Mon Mar 13, 2023 1:08 pm

Stripe SCA 1.0.5.0

Upgraded to 1.0.5.0, all working OK.

I note that you have upgraded the API to 2022-11-15 but one of the app files is still set at a previous API

In ext/modules/payment/stripe_sca/payment_intent.php Line 12 should be.

Code: Select all

\Stripe\Stripe::setApiVersion('2022-11-15');
Also in your Stripe Dashboard the API should be updated thus. It can be accessed by clicking on "Developers"
Capture.JPG
I have ringed where the change has to be made. Mine has been done already but yours will say in blue something like "Upgrade to the latest API 2022-11-15"
After 7 days have elapsed you should then have just one line of entries under API Version. (I did mine yesterday so that is why I have other entries there.)
Live shop Phoenix 1.0.9.0 on PHP 8.0
User avatar
mhsuffolk
VIP Member
VIP Member
Posts: 148
Joined: Sat Oct 26, 2019 9:13 am
Contact:

Re: Set up Stripe to current API

by raiwa » Mon Mar 13, 2023 1:20 pm

Thank you very much. I'll update the API reference.
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
PhoenixCart Developer
PhoenixCart Developer
Posts: 1212
Joined: Sat Dec 21, 2019 8:08 am
Contact:

Re: Set up Stripe to current API

by raiwa » Mon Mar 13, 2023 2:53 pm

Hi again,

maybe you are interested in testing the automatic send payment receipt option like posted in this thread:
app.php/addons/free_addon/stripe_paymen ... /topic/747
raiwa wrote: I added the receipt email to the attached module based on latest 1.5.0 version and would ask you to do some testing.
In sandbox mode the auto send receipt feature is not supported. Only manual sending from dashboard.

If you do not have updated yet, you need to update first to the latest 1.5.0 package. Then replace the stripe module with this one.
stripe_sca.zip
(8.68 KiB) Downloaded 48 times
It needs to be tested in live mode.

Thank you
Rainer

Let me know and I would include it as an option in the next update.
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
PhoenixCart Developer
PhoenixCart Developer
Posts: 1212
Joined: Sat Dec 21, 2019 8:08 am
Contact:

Re: Set up Stripe to current API

by mhsuffolk » Tue Mar 14, 2023 7:09 am

Yes, I can do that but I am on 1.0.8.4 so using the 1.0.7.12+ version of the app. The file you attached appears to be for 1.0.8.5+ and is very different to my current file. Should I try it or can you send an alternative please?
Live shop Phoenix 1.0.9.0 on PHP 8.0
User avatar
mhsuffolk
VIP Member
VIP Member
Posts: 148
Joined: Sat Oct 26, 2019 9:13 am
Contact:

Re: Set up Stripe to current API

by raiwa » Tue Mar 14, 2023 8:16 am

Here is the 1.0.7.12+ version.
Changes are in line 215+223
stripe_sca_1.0.7.12+.zip
(8.26 KiB) Downloaded 43 times
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
PhoenixCart Developer
PhoenixCart Developer
Posts: 1212
Joined: Sat Dec 21, 2019 8:08 am
Contact:

Re: Set up Stripe to current API

by mhsuffolk » Thu Mar 16, 2023 8:33 am

Sorry for the delay.
Yes, I can confirm that the amended file works in 1.0.8.4 and an email is sent to the customer.

However, as I do not use their receipt service normally, I have just tested it again with lines 215 + 223 commented out and the Stripe email receipt was still sent. I set my Stripe up several years ago but from what I remember I think you may have to complete the "Branding" section before emails are sent. Reading their documentation if you have their email switch on then they use the customers email which is passed in the main part of the order. Looking at the payment intent for my orders the receipt_email field was still not populated with your amended file in place.
Here are instructions on where the emails have to be switched on in the Stripe Dashboard.

Access the actual setting screen here
Capture1.JPG
email switch is here.
Capture.JPG
The actual email looks like this. You can add your own logo and colour scheme.
Capture2.JPG
Live shop Phoenix 1.0.9.0 on PHP 8.0
User avatar
mhsuffolk
VIP Member
VIP Member
Posts: 148
Joined: Sat Oct 26, 2019 9:13 am
Contact:

Re: Set up Stripe to current API

by raiwa » Thu Mar 16, 2023 8:38 am

Thank you very much.
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
PhoenixCart Developer
PhoenixCart Developer
Posts: 1212
Joined: Sat Dec 21, 2019 8:08 am
Contact: