Posted: February 5, 2014 at 11:37 pm
|
Hi, I’m trying a temporary fix posted by Garth and chris falkenstein. The question was “how to accept deposits?” [https://eventespresso.com/topic/suggestions-for-collecting-a-deposit-partial-payment/] This is no substitute for the eventual real integration, but if I do try it, how can I disable “early registration” discounts for the “deposit” ticket? In other words, my $50 early-bird discount is cutting my $100 deposit ticket in half; I’d much prefer to collect the whole deposit and apply the discount to the balance. Any takers? Thanks in advance! Glen |
Hi Glen, Which gateway are you currently using? We have a recent guide for partial payments using Paypal available here |
|
|
Hi Tony, thanks for the reply! My client refuses to use paypal, so I’m using Authorize.net SIM. Please tell me there’s a similar mod for that! They are invested in this gateway. Regards, |
|
There is not, but there should be one in a couple of minutes 🙂 Hang tight, brb. |
|
Thank you, Sidney! I look forward to it! With gratitude, |
|
The files can be downloaded here. You’ll just need to extract them and copy the authnet folder to uploads/espresso/gateways |
|
Thank you so much, Sidney! To use this, to I use these instructions (minus PayPal)? Best regards, |
Hi Glen, Yes just follow the same instructions as provided in the link and it should work the same. |
|
|
Hi Tony and Sidney, I have installed and modified as instructed, and there are 2 issues now; I hope you can help; I have looked into the error message, which suggests the following: Please advise, I am really hoping to go live by tomorrow. Thank you! Glen |
|
I set up the modified authnet gateway with some ajax to change the x_fp_hash field when the amount is changed. Do an element inspect on the authnet button, find the hidden x_fp_hash field, copy the value to a notepad, change the amount, and see if the x_fp_hash field value changes. |
|
Thank you, Sidney. I’m really grateful for your assistance. I’d be content to just get this deposit hack to work as-is. In answer to your question: <pre class=”brush: text; gutter: true; first-line: 1; highlight: []; html-script: false”>The following errors have occurred. FYI: Thank you! Glen |
|
Oh… <pre class=”brush: text; gutter: true; first-line: 1; highlight: []; html-script: false”> was not part of the error message. I just can’t seem to make this Reply coding work! Glen |
|
The Error message comes from this page: Message: |
|
I did have a heck of a time getting it to work the first time. I’ll set it up again on my test server and see if I can duplicate the error that you are seeing. |
|
And Authorize.net works again once I delete your authnet folder from wp-content/uploads/espresso/gateways … |
|
Thank you so much, Sidney. I appreciate your help, and I hope that your good work will be integrated soon. This is such a crucial function for event registrations! Best regards, |
|
I set it up here: http://eetesting.info/EE-test-site-3/?page_id=4&ee=1. I did find a bug when I was setting it up. When I was testing before, I only hit the authnet button after I had made a change to the amount. This time, I tried hitting the button before changing the amount, and got the 99 error. When I was refactoring the code to accommodate the ajax, I introduced that bug. I have sent up the patch, so if you use that original link to download the authnet files again, it should have the fix. (here is the link again). I did test again changing the amount twice, and that seemed to work. |
|
Sidney, your test does seem to work, but mine still fails…differently now: When I click Authorize.net (the only payment gateway option, by the way) with the full, loaded amount, it goes through. But if I change the amount it gives that same fail notice. Should I disable and reset my Authorize.net SIM gateway in EE? |
|
In DEBUG mode (with these checked in Manage Payment Gateways: Account Uses Authorize.net’s Development Server, Submit a Test Transaction) it gives a new error EVERY time: The following errors have occurred. (I don’t understand why that’s happening.) |
@Glen are you using credentials from Authorize.net’s Development Server or your personal/company credentials? If you have the “Account Uses Authorize.net’s Development Server” option set, then you have to use the credentials from that account, not your personal account. With the Submit a “Test Transaction”, you CAN use your personal credentials, but you cannot use the “Authorize.net’s Development Server” credentials. I hope that all makes sense. Please let us know if it helps or not. |
|
|
It could be a javascript error that is making the ajax fail to update the hash when the amount is changed. |
|
Thank you, Seth. It appears I can skip the debugging screen (unless you gents suggest otherwise). ~ Is there any way for me to trace a possible javascript error/conflict? I’m not that good at code… Could it be a conflict with Multiple Events and the shopping cart?? ~ Also: Even without the partial payment fix working, the successful EE/Authorize.net Payment Overview response page seems to show “0” paid and the full amount “Owed” … but Payment Status: Completed – very confusing… Shouldn’t the labels be reversed? Or is this a possible indicator of the problem? Please see below: ############################### Your transaction has been processed. Payment Overview Class/Event: WinterSongs East 2014 Thanks, guys! ~~~~~ Here are the plugins I have installed, though not all are active. Any glaring concerns here? ~~~~~~ Plugin Description Add From Server Admin Menu Tree Page View Advanced Custom Fields Affiliates Akismet Awesome Weather Widget Black Studio TinyMCE Widget Creativ Shortcodes Custom Content Shortcode Customer Area Custom Facebook Feed Custom Functions Plugin Custom Post Type UI Duplicator Easy Administration Easy Bootstrap Shortcode Email Users Event Espresso Event Espresso – Calendar Event Espresso – MailChimp Integration Event Espresso – Members Addon Event Espresso – Multi Event Registration Event Espresso – Permissions Event Espresso – Recurring Events Event Espresso – Social Coupons Event Espresso – Social Media Event Espresso – Ticketing Event Espresso API Plugin Hello Dolly IgnitionDeck Plugin Import Users from CSV Jetpack by WordPress.com Joomla2WP Migrated Users Authentication Plugin Members Import Orbisius Child Theme Creator Page Builder by SiteOrigin Post Lists View Custom Posts in Page Post Types Order Quiz Master Next Responsive Add Ons Revolution Slider Shortcodes Ultimate Smart Slider 2 User Role Editor WooDojo Wordfence Security WordPress Importer WP-Members WP Category Post List Widget WP e-Commerce WP Super Cache |
|
Can we get a link to the site? The easiest way to look for a javascript error is to open up the chrome developer tools, (right-click and inspect element) and open the console. |
|
Of course – thanks! http://new4.summersongs.com Glen |
|
I think I found it. For some reason my site was using GET for the ajax call and your site was using POST. I put a fix in to have the receiving script accept either one. You can download it again from that link above. |
|
Sidney, I am so grateful for your attention to this problem, but it didn’t help here. I uploaded the new authnet folder, made a new reservation; at full-price it worked. ################ I then closed everything, reset my browser, deleted the authnet folder via FTP and uploaded the new one again. No good. Could it be a js file not uploading properly? Permissions? Wrong format? (text, binary…I’m using Automatic upload mode) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Also, please see the confusing info resulting below, as mentioned before, when the full payment amount DID go through: Your transaction has been processed. Payment Overview What happens when you look at it in the console now? Gratefully, |
|
It looks like it’s working on your site now. I did a test registration, changed the amount and it went through to authorize.net. |
|
I confess, I am jumping up and down, and I am over-the-top grateful! I can’t imagine why it took a while to work itself out (??) Thank you! I updated my authnet folder again (after trying this successfully). Now, a new thing appeared. After payment (partial), instead of saying “Thank you, you’re done” it gives this confusing “Pending Payment” form (with an amount that cannot be edited, and I don’t know if it even works): Pending Payment Ah, I see that this is the screen that the user can be linked to in a future email when they are reminded to pay their balance! That’s great, but it’s dropped right in the middle of their receipt and the language is confusing. Maybe I can change some of the text on that page, and add a little more set-up? I will do it. Where can I access the template and the following text: And the email reminder + PDF invoice seem to have done the math by showing the FULL PRICE and the BALANCE DUE, but it does not mention the amount ALREADY PAID. Did your work include Dean’s shortcodes? Or, since EE 4beta is out, would this be permanent until I upgrade to EE4 if I do it? ######### Thank you, Sidney! Your talents and generosity are so appreciated! Smiles, |
|
Also…I hate to seem needy… 446 Arcadia Ave<br Any suggestions on where and how I might repair that? Thank you! |
|
Hi Glen, “Where can I access the template and the following text:” ” since EE 4beta is out, would this be permanent until I upgrade to EE4 if I do it?” You would be best to test out EE4 on a test server or test subdomain to make sure that it has everything that you need as it is still a Beta and there are aspects (especially plugins) that are not done yet. “The invoice (linked to the reminder emails) has stray broken |
|
Hello, Dean, Thank you! I’ve poked around with those instructions and Poedit; I’ll give it another look. Maybe for now I can just change the language around these forms to make use of them as they are, until your expert coding makes it a delightful, intuitive flow. Three questions: Kudos to you, Sidney, Seth and Tony. I’m in awe of your talents and your helpfulness! Best regards, from the edge of my seat… |
|
You might want to change the input text field for the amount to a select dropdown, instead. Take a look in gateways/authnet/Authorize.php at line 147. You could change that to a dropdown with two entries, the full amount or the deposit amount. |
|
Thank you for the direction, Sidney! I’m a hack, but I’ll take a look and see if I can figure that out. Best, |
|
Hi Sidney, I’ve been poking around, and my results aren’t great. Can you please help me? I feel guilty plowing through your good creation. Here’s what didn’t work…
As you might already imagine, it resulted in this mess: As I’d said, I’m really a hack who depends on the goodness of your EE product 🙂 Any guidance you might offer would be so greatly appreciated. Best regards, |
|
It was actually very close. Try this (inside the else statement): global $org_options; echo "<label for='amount_1'>" . __("Payment Amount: ", "event_espresso") . "</label>"; echo "<select name=\"$name\">\n"; echo "<option id='amount_1' value=\"$value\">".$org_options['currency_symbol']."$value - Full Amount"; echo "</option>\n"; echo "<option id='amount_1' value=\"100.00\">".$org_options['currency_symbol']."100.00 - Deposit"; echo "</option>\n"; echo "</select>\n"; |
|
Oh, you are my favorite person, Sidney! It works beautifully with the full amount and will be perfect, but whenever I change to the deposit amount it returns that old error message again: The following errors have occurred. Switching back to the full amount *does* then go through to the Authorize.net form. Any ideas? Thanks again! |
|
Oops. The jQuery was set to look for a key up event on the amount text field. Slight change to the above code in the else statement (to place the id on the select field): global $org_options; echo "<label for='amount_1'>" . __("Payment Amount: ", "event_espresso") . "</label>"; echo "<select name=\"$name\" id='amount_1'>\n"; echo "<option value=\"$value\">".$org_options['currency_symbol']."$value - Full Amount"; echo "</option>\n"; echo "<option value=\"100.00\">".$org_options['currency_symbol']."100.00 - Deposit"; echo "</option>\n"; echo "</select>\n"; and then in get_hash.js, change line 18 to: jQuery( "#amount_1" ).change(my_js_function); |
|
Arrrgh… Same error. Wait! I removed the # from I made it and it worked! Is that sound? SOOOO grateful to you, Sidney! Big smiles, |
|
That’s odd, the # tells jQuery “look for an element with id of”. Without it, it shouldn’t work. |
|
When I say “I have no idea why,” I really mean it… :-] |
The support post ‘Deposits in EE’ 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.