Hi Bob,
In order to find out what the problem could be with the double emails, I replaced the emails by a customcode which writes a log to a file.
I placed a log before the Mollie Submit, after on fail, and after the mollie submit.
The content of the customcode looks like:
<?php
$cf_id=$form->data['mollie']['cf_id'];
$transaction_id=$form->data['transaction_id'];
$amount=$form->data['amount'];
$description=$form->data['description'];
$date = date('Y-m-d H:i:s');
$path=JPATH_SITE;
$logfile = fopen($path . '/lilypond/mollie.txt', "a");
fwrite($logfile,"$date: before mollie submit: cf_id=$cf_id transaction_id=$transaction_id description=$description amount=$amount\n");
fclose($logfile);
?>
The setup of the form looks like:
What happens after a submit of the form looks interesting and might help you to locate the problem.
Next log is after a successfull payment
2016-01-15 09:40:42: before mollie submit: cf_id= transaction_id= description=testcursus amount=100
2016-01-15 09:40:54: before mollie submit: cf_id= transaction_id=2feeb293483f447b72fda56ea2e166a7 description= amount=
2016-01-15 09:40:54: on paid: cf_id= description= amount=
2016-01-15 09:40:55: before mollie submit: cf_id= transaction_id=2feeb293483f447b72fda56ea2e166a7 description= amount=
2016-01-15 09:40:55: on paid: cf_id=441 description=testcursus amount=100
And next log after a cancelled payment:
2016-01-15 09:41:19: before mollie submit: cf_id= transaction_id= description=testcursus amount=100
2016-01-15 09:41:22: before mollie submit: cf_id= transaction_id=c5de3c6f0caee52a5b4d06d4318944d0 description= amount=
2016-01-15 09:41:23: on paid: cf_id= description= amount=
2016-01-15 09:41:24: before mollie submit: cf_id= transaction_id=c5de3c6f0caee52a5b4d06d4318944d0 description= amount=
2016-01-15 09:41:24: on fail: cf_id=442 description=testcursus amount=100
You will see, that after a payment the submit part is called twice.
Greetings,
Theo