Posted: March 28, 2014 at 7:13 am
|
After submitting the credit card form to complete the purchase, the form loads the thank you (payments) page with payment status “incomplete”. This seems to happen even with invalid card info, as long as the form validates. WP Version 3.81 This is a new installation. Link to registration page: Other info: The site is on WP Engine, and the three pages as specified in the SSL instructions have been set to be served via SSL. The “Force HTTPS on Return URL” is unchecked, as I read was the correct thing to do with a WP Engine SSL install, although checking it had no effect on the issue. We’re trying to use Authorize.net AIM. This is all set up and in LIVE mode, the API key & secret has been checked and re-checked. I noticed that I’m getting a javascript error on submitting the form, complaining of I also noticed a warning in the PHP logs that Espresso was failing to start a session:
|
Hi Conrad, From what I’ve seen with this before, the SSL redirect to the return page that WPEngine sets up doesn’t work if custom permalinks are enabled. There is a workaround for this. If you open up event-espresso/gateways/aim/aim_vars.php you can change line 33 from: <form id="aim_payment_form" name="aim_payment_form" method="post" action="<?php echo $home . '/?page_id=' . $org_options['return_url'] . '&r_id=' . $registration_id; ?>"> to <form id="aim_payment_form" name="aim_payment_form" method="post" action="<?php echo add_query_arg(array('r_id'=>$registration_id), get_permalink($org_options['return_url'])); ?>"> This will make it so the form action URL matches what the return page redirects to regardless of how the permalinks are set up. |
|
|
Yes, that resolved it. Thanks! |
Your welcome Conrad. We’ll be including this fix in Event Espresso 3.1.37.P. There may be a hotfix released before .37 is ready, so I can recommend copying over the aim folder to /wp-content/uploads/espresso/gateways and that will keep the changes from getting overwritten in the event there’s another hotfix released for Event Espresso 3.1.36.P |
|
The support post ‘Transaction always returns "incomplete"; WP Engine, Authorize.net AIM, and SSL’ 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.