// don't cancel the order becasue order was successfull through api
// don't cancel the order becasue order was successfull through api
$this->_debugData['_updateOrder warning']='order is not cancelled because api result was succesfull';
$this->_adyenLogger->addAdyenNotificationCronjob('order is not cancelled because api result was succesfull');
}else{
}else{
// don't cancel the order if previous state is authorisation with success=true
// don't cancel the order if previous state is authorisation with success=true
// Split payments can fail if the second payment has failed the first payment is refund/cancelled as well so if it is a split payment that failed cancel the order as well
// Split payments can fail if the second payment has failed the first payment is refund/cancelled as well so if it is a split payment that failed cancel the order as well
$this->_debugData['_authorizePayment info']='Ignore the pre authorized status because the order is under manual review and use the Manual review status';
$this->_adyenLogger->addAdyenNotificationCronjob('Ignore the pre authorized status because the order is under manual review and use the Manual review status');
}
}
$this->_prepareInvoice();
$this->_prepareInvoice();
$_paymentCode=$this->_paymentMethodCode();
$_paymentCode=$this->_paymentMethodCode();
// for boleto confirmation mail is send on order creation
// for boleto confirmation mail is send on order creation
if($this->_paymentMethod!="adyen_boleto"){
if($this->_paymentMethod!="adyen_boleto"){
// send order confirmation mail after invoice creation so merchant can add invoicePDF to this mail
// send order confirmation mail after invoice creation so merchant can add invoicePDF to this mail
// $this->_order->sendNewOrderEmail(); // send order email
if(!$this->_order->getEmailSent()){
$this->_orderSender->send($this->_order);
$this->_orderSender->send($this->_order);
$this->_adyenLogger->addAdyenNotificationCronjob('Send orderconfirmation email to shopper');
$this->_debugData['_prepareInvoice partial authorisation step2']='There is already a partial AUTHORISATION received check if this combined with the previous amounts match the total amount of the order';
$this->_adyenLogger->addAdyenNotificationCronjob('There is already a partial AUTHORISATION received check if this combined with the previous amounts match the total amount of the order');
$this->_debugData['_prepareInvoice partial authorisation step3']='The full amount is paid. This is the latest AUTHORISATION notification. Create the invoice';
$this->_adyenLogger->addAdyenNotificationCronjob('The full amount is paid. This is the latest AUTHORISATION notification. Create the invoice');
$this->_createInvoice();
$this->_createInvoice();
}else{
}else{
// this can be multiple times so use envenData as unique key
// this can be multiple times so use envenData as unique key
$this->_debugData['_prepareInvoice partial authorisation step3']='The full amount is not reached. Wait for the next AUTHORISATION notification. The current amount that is authorized is:'.$totalAuthorisationAmount;
$this->_adyenLogger->addAdyenNotificationCronjob('The full amount is not reached. Wait for the next AUTHORISATION notification. The current amount that is authorized is:'.$totalAuthorisationAmount);
}
}
}else{
}else{
$this->_debugData['_prepareInvoice partial authorisation step2']='This is the first partial AUTHORISATION save this into the adyen_authorisation_amount field';
$this->_adyenLogger->addAdyenNotificationCronjob('This is the first partial AUTHORISATION save this into the adyen_authorisation_amount field');
$this->_adyenLogger->addAdyenNotificationCronjob('This payment method does not allow manual capture.(2) paymentCode:'.$_paymentCode.' paymentMethod:'.$this->_paymentMethod);
returntrue;
returntrue;
}
}
// if auto capture mode for openinvoice is turned on then use auto capture
// if auto capture mode for openinvoice is turned on then use auto capture
Make sure that your magento cron is running every minute. We are using a cronjob to process the notifications. The cronjob will be executed every minute. It only executes the notifications that have been received at least 2 minutes ago. We have built in this 2 minutes so we are sure Magento has created the order and all save after events are executed. A handy tool to get inside into your cronjobs is AOE scheduler. You can download this tool through Magento Connect or GitHub
Make sure that your magento cron is running every minute. We are using a cronjob to process the notifications. The cronjob will be executed every minute. It only executes the notifications that have been received at least 2 minutes ago. We have built in this 2 minutes so we are sure Magento has created the order and all save after events are executed. A handy tool to get insight into your cronjobs is AOE scheduler. You can download this tool through Magento Connect or GitHub
## Support ##
## Support ##
You can create issues on our Magento Repository or if you have some specific problems for your account you can contact magento@adyen.com as well.
You can create issues on our Magento Repository or if you have some specific problems for your account you can contact magento@adyen.com as well.
<tooltip>If you are not sure just leave it at 'Sale’. Sale means it is always immidiate capture with auth/cap it will follow the Capture Delay. If you want to enable 'Auth/Capt' for SEPA Direct Debit, please contact support@adyen.com</tooltip>
<li><atarget="_blank"href="https://www.adyen.com/home/payment-services/plug-ins/magento#form"><strong>Sign</strong> up for a test account</a></li>
<li><atarget="_blank"href="https://www.adyen.com/home/payment-services/plug-ins/magento#form"><strong>Sign</strong> up for a test account</a></li>
<li>The latest version of the <atarget="_blank"href="https://github.com/adyen/adyen-magento2/releases">Adyen Magento module is also available through GitHub</a>.</li>
<li>The latest version of the <atarget="_blank"href="https://github.com/adyen/adyen-magento2/releases">Adyen Magento module is also available through GitHub</a>.</li>
</ul>
</ul>
<p> In the test modus you nee to use test cards. <atarget="_blank"href="http://adyen.com/test-card-numbers">Test cards can be found here</a>
<p> In the test modus you need to use test cards. <atarget="_blank"href="http://adyen.com/test-card-numbers">Test cards can be found here</a>
<p>You can find this in the Adyen back-office. The Adyen back-office can be found on <atarget="_blank"href="https://ca-test.adyen.com">https://ca-test.adyen.com</a> for test or <atarget="_blank"href="https://ca-live.adyen.com">https://ca-live.adyen.com</a> for live.</p>
<p>You can find this in the Adyen back-office. The Adyen back-office can be found on <atarget="_blank"href="https://ca-test.adyen.com">https://ca-test.adyen.com</a> for test or <atarget="_blank"href="https://ca-live.adyen.com">https://ca-live.adyen.com</a> for live.</p>
<p>If you have any further questions, please visit the <atarget="_blank"href="http://www.adyen.com">Adyen.com</a> website or email <ahref="mailto:magento@adyen.com">magento@adyen.com</a>.</p>
<p>If you have any further questions, please visit the <atarget="_blank"href="http://www.adyen.com">Adyen.com</a> website or email <ahref="mailto:magento@adyen.com">magento@adyen.com</a>.</p>