Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug on sending emails #1631

Merged
merged 1 commit into from
Aug 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app/listeners/credit_card_payment_listener.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
# Full license explanation at https://github.com/houdiniproject/houdini/blob/main/LICENSE
class CreditCardPaymentListener < ApplicationListener
def self.donation_create(donation, locale, user=nil)
if donation.payment_provider == :credit_card
if donation.payment_provider.to_sym == :credit_card
PaymentNotificationEmailDonorJob.perform_later donation, locale
PaymentNotificationEmailNonprofitJob.perform_later donation, user
end
end

def self.recurring_donation_create(donation, locale, user=nil)
if donation.payment_provider == :credit_card
if donation.payment_provider.to_sym == :credit_card
PaymentNotificationEmailDonorJob.perform_later donation, locale
PaymentNotificationEmailNonprofitJob.perform_later donation, user
end
Expand All @@ -22,7 +22,7 @@ def self.refund_create(refund)
end

def self.recurring_donation_payment_succeeded(donation, locale, user=nil)
if donation.payment_provider == :credit_card
if donation.payment_provider.to_sym == :credit_card
PaymentNotificationEmailDonorJob.perform_later donation, locale
PaymentNotificationEmailNonprofitJob.perform_later donation, user
end
Expand Down
2 changes: 1 addition & 1 deletion app/listeners/sepa_payment_listener.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Full license explanation at https://github.com/houdiniproject/houdini/blob/main/LICENSE
class SepaPaymentListener < ApplicationListener
def self.donation_create(donation, locale, user=nil)
if donation.payment_provider == :sepa
if donation.payment_provider.to_sym == :sepa
DirectDebitCreateNotifyNonprofitJob.perform_later(donation.id)
DirectDebitCreateNotifyDonorJob.perform_later donation.id, locale
end
Expand Down
Loading