CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Paypal Standard payments and issue with alterMailParams hook
Pages: [1]

Author Topic: Paypal Standard payments and issue with alterMailParams hook  (Read 531 times)

hallanm

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 3.3
  • CMS version: Drupal 6.2
  • MySQL version: 5.1.47
  • PHP version: 5
Paypal Standard payments and issue with alterMailParams hook
April 11, 2011, 08:11:19 am
I have installed the civicrm_pdfreceipts module that was developed by PeaceWorks with my Civicrm install. 

Drupal - 6.2
Civicrm - 3.3

The issue i'm having is with CiviContribute. When making a paypal payment (Paypal Standard), the transaction goes through with no problem, but the receipt that gets sent is the incorrect one.  The civicrm_pdfreceipts module uses the CRM_Utils_Hook::alterMailParams( $mailParams ); to add a customized pdf receipt to the mail attachment and alter the message text before sending.

When using the dummy payment processor the hook gets called and I can receive the correct receipt from the civicrm_pdfreceipts module.  However, when using Paypal Standard it seems like the code to call the hook doesn't get executed and as a result a receipt from the Message Templates gets sent rather than the one from the civicrm_pdfreceipts module.

I've checked and tried to debug with no success. 
I've looked in civicrm/CRM/Mailing/BAO/Mailing.php and civicrm/CRM/Utils/Mail.php.

Could there be another place where an email gets sent?

I've sent many live payments to test because using the Paypal Sandbox doesn't send out any mail messages.  If there is a way to send an email from CiviContribute after a transaction completes with the Paypal Sanbox that would really help me out to debug.

Any help would be greatly appreciated.

Thanks.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Paypal Standard payments and issue with alterMailParams hook

This forum was archived on 2017-11-26.