Joomla: 1.6.3
Hikashop: 1.5.1
When using Authorize.net as the payment gateway with the AIM as the API then the option "Allow payment notifications from Authorize" does not have any effect; Authorize.net will look up the configuration in the Merchant Interface to determine if it should send a receipt email or not.
To fix this you'll need to pass an addition field into the API CURL call: 'x_email_customer'. I patched mine like this:
/plugins/hikashoppayment/authorize/authorize.php starting line 103...
FROM...
103> $vars["x_tran_key"] = $method->payment_params->transaction_key;
104> $post_string = "";
TO...
103> $vars["x_tran_key"] = $method->payment_params->transaction_key;
104> $vars["x_email_customer"] = (@$method->payment_params->notification) ? '1':'0';
105> $post_string = "";
Here's the API information from Auth:
FIELD NAME: x_email_customer
REQUIRED?: Optional
VALUE: The customer email receipt status
FORMAT: TRUE, FALSE, T, F, YES, NO, Y, N, 1, 0
NOTES:
Indicates whether an email receipt should be sent to the customer.
If set to TRUE, the payment gateway will send an email to the customer after the transaction is processed using the customer email address submitted with the transaction. If FALSE, no email is sent to the customer.
If no value is submitted, the payment gateway will look up the configuration in the Merchant Interface and send an email only if the merchant has enabled the setting. If this field is not submitted and the setting is disabled in the Merchant Interface, no email is sent.
For more information about configuring Email Receipts in the Merchant Interface, see the Merchant Integration Guide.