When using the PxAccess gateway, I am finding that 2 sets of identical emails are being produced when the order is placed. Two (of uc_order-admin.tpl.php) to the store owner and two (of uc_order-customer.tpl.php ) to the customer.
The first of each is issued when the DPS "submit" button is pressed and then another when the "next" button is pressed and the user is returned to the website. I have checked all CA's but don't think these are the cause. Might this be related in some way to the [http://drupal.org/node/923718].
I am using 6.x-1.x-dev with the uc_paymentexpress-923718-duplicate_payments.patch but it was also doing this under 6.x-1.0.
Thanks for looking. Any thoughts?
Tim
Comments
Comment #1
dollar_dad commentedFor anyone coming across this issue please let me explain how I set this up, after spending many hours banging my head on the desk.
According to DPS (Payment Express) this is not a bug but a feature.!!! They call it "Fail Proof Result Notification".
see http://www.paymentexpress.com/knowledge_base/faq/developer_faq.html#testing for a full description.
The answer lies in the CA (Conditional Actions).
Under Trigger: Customer completes checkout
edit both E-mail admin checkout notification and E-mail customer checkout notification
under Conditions add two conditions,
Condition: Check the order balance and set it to "Balance is less than or equal to $0.00."
!!! Important that you set this condition as an invoice will still be sent even if you get a fail from DPS
Condition: Check the order status and set it to "Payment Received"
Action should be "Email an Invoice"
Then under CA "Update order status upon checkout completion with full payment".
Condition: Check the order balance should be set to "Balance is less than or equal to $0.00."
Action: Update the order status should be set to "Payment Received"
I'm quite new to using Ubercart so a better solution might exist but this works - I've tested it on my dev account with DPS.
Note: You cannot test this from your localhost.
Hope this helps someone else.
Using:
Drupal 6.20
Ubercart 6.2.4
uc_paymentexpress 6.x-1.x-dev
FYI
mhash and mcrypt supported was also need serverside
Comment #2
timtunbridge commentedUnfortunately I already have these settings and so this is not the answer for me.
I believe this is the same thing as already under discussion in this long running thread #644538: Duplicate order notification e-mail, and duplicate stock decrement
Tim
Comment #3
xurizaemon#1192018: Duplicate order notification e-mail, and duplicate stock decrement now. Need to review the fixes applied there (damn, that is one long pair of issues).
Comment #4
xurizaemonPxPay is the path forward here - marking this WONTFIX. #1376810: Deprecate PxAccess.
To switch from PxAccess to PxPay, add your PxAccess MAC key to the end of your PxAccess key to obtain your PxPay key.