Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
iDeal Fix | Event Espresso - Staging Server

Support

Home Forums Event Espresso Premium iDeal Fix

iDeal Fix

Posted: June 21, 2013 at 5:14 am

Viewing 5 reply threads


Leon Berenschot

June 21, 2013 at 5:14 am

Just fixed the mollie iDeal code because it was not processing the payments (getting the payment status only returns true once)

I don’t know if this is the best and securest way to do this but alas, it works for me now (php has been a long time for me, so bear with me)

to make it work:
copy the ideal folder from teh gateways folter to wp-content/uploads/espresso/gateways/

replace the content of report.php with this code:


function espresso_process_ideal_report($payment_data) {
$ideal_mollie_settings = get_option('event_espresso_ideal_mollie_settings');
$payment_data['txn_details'] = serialize($_REQUEST);
$payment_data['txn_type'] = 'iDeal Mollie';

if ($payment_data[‘payment_status’] != ‘Completed’) {
$payment_data[‘payment_status’] = ‘Incomplete’;
$payment_data[‘txn_id’] = 0;
require_once(‘ideal.class.php’);
$partner_id = $ideal_mollie_settings[‘ideal_mollie_partner_id’]; // Uw mollie partner ID
if (isset($_GET[‘transaction_id’])) {
$payment_data[‘txn_id’] = $_GET[‘transaction_id’];
$iDEAL = new Espresso_iDEAL_Payment($partner_id);
$iDEAL->checkPayment($_GET[‘transaction_id’]);
if ($iDEAL->getPaidStatus() == true) {
$payment_data[‘payment_status’] = “Completed”;
} else {
?>
?>

<?php

<!–?php }
}
}
//add_action(‘action_hook_espresso_email_after_payment’, ‘espresso_email_after_payment’);
return $payment_data;
}


Leon Berenschot

June 21, 2013 at 5:24 am

<?php

function espresso_process_ideal_report($payment_data) {
$ideal_mollie_settings = get_option('event_espresso_ideal_mollie_settings');
$payment_data['txn_details'] = serialize($_REQUEST);
$payment_data['txn_type'] = 'iDeal Mollie';

if ($payment_data['payment_status'] != 'Completed') {
$payment_data['payment_status'] = 'Incomplete';
$payment_data['txn_id'] = 0;
require_once('ideal.class.php');
$partner_id = $ideal_mollie_settings['ideal_mollie_partner_id']; // Uw mollie partner ID
if (isset($_GET['transaction_id'])) {
$payment_data['txn_id'] = $_GET['transaction_id'];
$iDEAL = new Espresso_iDEAL_Payment($partner_id);
$iDEAL->checkPayment($_GET['transaction_id']);
if ($iDEAL->getPaidStatus() == true) {
$payment_data['payment_status'] = "Completed";
} else {
?>
<h2 style="color:#F00;"><?php _e('There was an error processing your transaction!', 'event_espresso'); ?></h2> <?php
}
}
}
//add_action('action_hook_espresso_email_after_payment', 'espresso_email_after_payment');
return $payment_data;
}


Dean

  • Support Staff

June 24, 2013 at 4:47 am

Hi,

Thanks for posting this, it may be of use to people. I will also bring it to the developers attention.


Michael Nelson

  • Support Staff

June 24, 2013 at 3:12 pm

@Leon Berenschot, I’m confused at why you posted your code for “espresso_process_ideal_report” twice… Do you mind explaining?
But I see the bug you fix. I’ve integrated your change into 3.1.35 (currently undergoing ALPHA testing) so it will be part of core after it’s gone through testing.


Leon Berenschot

June 24, 2013 at 3:23 pm

post is exactly the same, first one screwed up the formatting a little… :P


Josh

June 25, 2013 at 8:44 am

Thanks for sharing the fix Leon!

Viewing 5 reply threads

The support post ‘iDeal Fix’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso - Staging Server