Receiving multiple donation confirmations

  • Erin Fernandez
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
12 years 11 months ago #9259 by Erin Fernandez
Receiving multiple donation confirmations was created by Erin Fernandez
Not sure what happened but we recently moved our website to a server running PHP 5.2
and since then, each time a donation is made, I am receiving multiple email confirmations for it, all throughout the day. About 20 emails for same donation)

Any idea how I can limit it to only one email per donation?

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #9265 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Receiving multiple donation confirmations
It must be something with your new server . You can fix this issue follow the instruction below :

- Open the file components/com_jdonation/payments/os_paypal.php .

- Looks for the line of code (around line 286 if you are using latest version) .
Code:
$row->load($id);

- Change it to :
Code:
$row->load($id); if ($row->published) return true ;

That should solve the problem !

Please Log in or Create an account to join the conversation.

  • Erin Fernandez
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
12 years 11 months ago #9311 by Erin Fernandez
Replied by Erin Fernandez on topic Re: Receiving multiple donation confirmations
Thank you!
Your solution worked for donations!
now, I am still receiving multiple notifications for recurring donations.
What do you recommend for that?

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #9361 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Receiving multiple donation confirmations
You can do the same in verifyRecurringPayment() function :

1. Looks at the at line 320 :
Code:
$row->load($id);

Change it to :
Code:
$row->load($id); if ($row->published) return true ;

2. Looks at the code at line 329 :
Code:
$row->load($id);

Change it to :
Code:
$row->load($id); if ($row->published) return true ;


These changes should fix the email problem with recurring donation .

Please Log in or Create an account to join the conversation.

Moderators: Mr. DamDũng Nguyễn Việt