Author Topic: Added Support for Setting Email Options in Payment Configuration  (Read 4757 times)

Daniel Wagner

  • Beginner
  • *
  • Posts: 41
I have updated ps_authorize.php to allow the Merchant Gateway email options to be set via the Payment Configuration.

The 2 fields that get sent to which I have updated are: x_merchant_email and x_email_customer.

If an email address is sent in x_merchant_email then a message will be sent from the Gateway to that address. There is another setting in (not a VirtueMart setting, but set by logging in to the site) that also sends the Merchant an email. This resulted in the Merchant receiving two messages for every successful order.

The x_email_customer field is simply True or False and is used to configure the Gateway to send an email to the Customer upon successful payment. Again, this was resulting in two messages being sent to the customer because VirtueMart alos sends and email receipt.

Updated ps_authorize.php is attached here and diff file can be found in the BugTracker Task 637:

[attachment cleanup by admin]