Stripe Payment

Stripe not sending automatic receipts when payment completed - Stripe Payment

Stripe not sending automatic receipts when payment completed

by 14Steve14 » Wed Nov 30, 2022 9:35 am

Sorry to be a nuisance again.

Module is working correctly and payments are being taken with no problems so this is only something minor.

On reading the Stripe documents I can see that an email receipt can be sent to the customers after every successful payment. I have checked and adjusted the settings within my account to allow sending of email receipts after a purchase, so that should all be right.

On testing using test card numbers, and a real transaction, through the website I cannot get Stripe to send the email receipts. On checking the data withing the payment, it says that an mail address was not given, when there is an email address in the data, but in another section. Is there something that needs updating in the app to get this to work.

Any help appreciated even if its a note to say that your account does sent these email receipts to customers.

Also on something totally different, am I right in saying that Stripe has updated it API to a new version and if so does the app use this new API?
14Steve14
VIP Member
VIP Member
Posts: 549
Joined: Fri Oct 25, 2019 7:01 pm
Contact:

Re: Stripe not sending automatic receipts when payment compl

by raiwa » Wed Nov 30, 2022 2:04 pm

Hi Steve,

E-mail address should be passed.
See line 795 in the module:

Code: Select all

                    email: $('#email_address').val()
Api version is: 2019-08-14

Not sure if it's required to update.
Maybe I'll have a look and update it when I'll find some time.
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: 1184
Joined: Sat Dec 21, 2019 8:08 am
Contact:

Re: Stripe not sending automatic receipts when payment compl

by 14Steve14 » Wed Nov 30, 2022 2:48 pm

Cheers Rainer. I will have to take a look into why they may not be sending.

The API has moved on a long way since that date. Its up to https://stripe.com/docs/upgrades#2022-11-15
14Steve14
VIP Member
VIP Member
Posts: 549
Joined: Fri Oct 25, 2019 7:01 pm
Contact:

Re: Stripe not sending automatic receipts when payment compl

by 14Steve14 » Thu Dec 08, 2022 9:51 am

14Steve14 wrote:Cheers Rainer. I will have to take a look into why they may not be sending.
I have looked at the Stripe "Payment Intent" Data that is created after a payment has been made and all instances where a receipt is mentioned are showing null
"receipt_email": null,
"receipt_number": null,
There is something in the docs about collecting this but I have no idea what to change in the code. See attached image
stripe email.png
Hopefully that may mean something to you.
14Steve14
VIP Member
VIP Member
Posts: 549
Joined: Fri Oct 25, 2019 7:01 pm
Contact:

Re: Stripe not sending automatic receipts when payment compl

by raiwa » Thu Dec 08, 2022 11:54 am

Hi Steve,

This is then not supported by the module.

Best wishes
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
PhoenixCart Developer
PhoenixCart Developer
Posts: 1184
Joined: Sat Dec 21, 2019 8:08 am
Contact:

Re: Stripe not sending automatic receipts when payment compl

by raiwa » Mon Feb 13, 2023 2:14 pm

Hi Steve,

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 44 times
Thank you in advance
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
PhoenixCart Developer
PhoenixCart Developer
Posts: 1184
Joined: Sat Dec 21, 2019 8:08 am
Contact:

Re: Stripe not sending automatic receipts when payment compl

by raiwa » Wed Feb 22, 2023 2:51 pm

Hi Steve and other downloaders,
Any feedback for this?
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: 1184
Joined: Sat Dec 21, 2019 8:08 am
Contact:

Re: Stripe not sending automatic receipts when payment compl

by 14Steve14 » Fri Mar 03, 2023 3:17 pm

raiwa wrote:Hi Steve and other downloaders,
Any feedback for this?
Just tried adding this one page as an update and once uploaded the stripe module disappeared from the payment options list and the shopping cart failed when adding any products.

I thought I was running the latest version on my older site but I may not be.

I am now going to add this module to my new development site and test it from there so it may take a few more days to get time to check everything.
14Steve14
VIP Member
VIP Member
Posts: 549
Joined: Fri Oct 25, 2019 7:01 pm
Contact:

Re: Stripe not sending automatic receipts when payment compl

by 14Steve14 » Fri Mar 03, 2023 3:18 pm

raiwa wrote:Hi Steve and other downloaders,
Any feedback for this?
Just tried adding this one page as an update and once uploaded the stripe module disappeared from the payment options list and the shopping cart failed when adding any products.

I thought I was running the latest version on my older site but I may not be.

I am now going to add this module to my new development site and test it from there so it may take a few more days to get time to check everything.
14Steve14
VIP Member
VIP Member
Posts: 549
Joined: Fri Oct 25, 2019 7:01 pm
Contact: