Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › Anyone Using Braintree For eStore
Tagged: braintree, braintree gateway, checkout, estore, force https, HTTPS Redirection, payment gateway, paypal gateway, SSL
- This topic has 29 replies, 8 voices, and was last updated 8 years, 4 months ago by wpCommerce.
-
AuthorPosts
-
July 13, 2016 at 5:50 am #57688advexpMember
Installed Braintree gateway and it’s working, but a few issues/questions – would appreciate some direction. Here are our current versions:
Link – [https://www.lifestreams.org/store/]
WP Vs: 4.5.3
Theme: Avada (vs 4.0.3)
WP eStore: 7.4
MySQL Version: 5.6.29
PHP Version: 7.0.8
Issue 1: When I filled out the secure Braintree order checkout form, I intentionally left zip code and Country fields blank and clicked SUBMIT to test. The errors were highlighted in red as expected, and, then I noticed a large circle was spinning underneath while I was trying to add the data in the two fields. Before I could enter the data, the transaction went through and cleared the order form window so it was blank. There was no “transaction completed” message or “transaction failed” notice. Then, I received a confirmation customer email, but no admin email confirming the transaction. So, I logged into Braintree, and the transaction did indeed get processed.
Issue 2 (perhaps related): I unchecked the Paypal in the payment gateways tab, since I only wanted to use Braintree’s gateway (you can enable Paypal from inside the Braintree merchant account so I was hoping I could just used Braintree for both). Is this possible with eStore Braintree addon? Also, since I unchecked Paypal gateway, does that mean no admin confirmation emails will be delivered when using Braintree addon only?
Issue 3: There was no CVV (security code) field in the Braintree form – only cc number and exp date. Is there a flag/checkbox that I missed?
Issue 4: At the bottom of the Braintree settings page, I added the info for “Order Information Page Title” – but when I clicked “Proceed to Checkout” button on the live cart, there is no header title at the top of the Braintree checkout form.
Issue 5: Is there a short code for the Braintree checkout form that launches when you click the “Proceed to Checkout” button? That way we can insert the short code inside the Avada 2/3 column container and use a 1/3 right nav column for better visual structure.
Thanks for your help!
July 14, 2016 at 4:25 am #57689wpCommerceModerator@advexp, When I click on the checkout button it goes to a 404(not found) page. Did you delete the eStore action page? I’m also getting this JavaScript warning in the browser console:
Font from origin ‘https://lifestreams.org’ has been blocked from loading by Cross-Origin Resource Sharing policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘https://www.lifestreams.org’ is therefore not allowed access.
July 14, 2016 at 5:52 am #57690advexpMemberNo, I haven’t deleted eStore (what is the “action page”?). I was testing the new Braintree gateway while I was logged in to the admin area over the last couple days, and it worked fine (with the exception of the notes above that I sent yesterday). Just now, I logged out of admin and went to the shopping cart, and clicked “Proceed to Checkout,” I got the 404 error also, and I see the same Java script console error messages you saw. I don’t know what’s causing the Java errors on the eStore cart page (when you click “Proceed to Checkout.”
We did HTTPS Redirection plugin that you created, and it works great. I’ve set it up to use for several specific pages (Contact, Donate, Store), but then decided to force the whole site to HTTPS, so it’s set on the first (WHOLE site) option. Not sure if that’s related. Also, don’t know if it’s related from a troubleshooting standpoint, but we’re using a Braintree gateway on our Donate page integration, and the HTTPS and checkout functions work fine there.
Thanks for the help.
July 14, 2016 at 6:07 am #57691advexpMemberJust fixed it – for some reason, the “STORE ACTION” page was set to “private.”
My apologies!!! Now you should be able to test the Braintree checkout page on your end.
July 14, 2016 at 11:21 pm #57692advexpMemberNEW ISSUE just in the last hour — Strangely, I’m losing HTTPS now when I add a product to the cart. Then, when I click on “Proceed to Checkout” at bottom of cart, it goes back to HTTPS, but gives a message:
“Your shopping cart is empty. Please add an item to your cart. You can load the checkout page and make sure the shopping cart is not empty. — Go to Products Page — If you are the admin of this site and you are certain that the shopping cart is not empty then the PHP Session on your server is not working correctly. Please check this article.”
I read the article and followed the instructions – cleared cache, deactivated WP SuperCache. Tried adding a product to the cart then, when I click “Proceed to Checkout” it gives me the same error. I also read your article about potentially bad themes and plugins. I deactivated the “MailChimp Forms by MailMunch” plugin (you mentioned the MailChimp Widget plugin and I assumed this was the same one). Still getting the same PHP error. Also, activated another theme and tested — I lose HTTPS when going from the store to the cart, and then get the PHP error when clicking “Proceed to Checkout.” (Braintree addon).
I haven’t had any issues or errors until now while testing the eStore system with the new Braintree addon (except for the issues submitted a couple days ago.
Please advise. Thank you!
July 15, 2016 at 4:52 am #57693adminKeymasterYou have little bit of setup issue. In your setting, you have areas where you have specified a URL without the “https” URL.
Then to compound the issue, you are not forcing your URLs to always load the HTTPS version (meaning even if someone entered the non-https version, you would auto redirect to the https version). For example, if you go to our projects page at the following URL (without the https in the URL), you will see how it auto redirecrs to the SSL version:
This is what you need to do to make sure your visitors are always going to the HTTPS URL.
The following plugin will allow you to do this easily (if you don’t know how to do this):
https://wordpress.org/plugins/https-redirection/
Let me know how you go after that.
July 15, 2016 at 9:35 pm #57694advexpMemberOK, went back to eStore “General Settings” as you pointed out (didn’t realize that those URLs had to be changed to reference https vs. http). As soon as I changed them to https, the checkout page works without any errors.
Regarding forcing HTTPS, we’ve been using the https-redirection plugin you made (seems to work great). We’ve set it on “The Whole Domain” setting (not just specified pages). Noticed what you saw — that I can enter lifestreams.org in the browser and the site doesn’t force the browser to https. Is there some other change needed in the htaccess or wp-config files? I’ve tried setting wp-config “define” as follows — doesn’t seem to make a difference:
define(‘WP_HOME’,’https://www.lifestreams.org’);
define(‘WP_SITEURL’,’https://www.lifestreams.org’);
Hope you’ll now be able to test the Braintree gateway without any more access problems (sent the questions a couple days ago in this thread).
Thank you again!
July 15, 2016 at 9:47 pm #57695advexpMemberOne more detail from further testing that might help us diagnose the forcing https issue (using https-redirection plugin), I noticed that the site is forcing https when you type in the home page URL “lifestreams.org”. However, when I insert any other url (ie, lifestreams.org/store), the site does not force https. Note: I cleared my browser cache before testing on both Firefox and Chrome.
July 16, 2016 at 4:20 am #57696adminKeymasterLet investigate why the ‘store’ page is not being caught by the htaccess rule set by that HTTPS redirection plugin.
Can you please copy and paste the content of your .htaccess file?
The store page is part of the same wordpress install (you don’t have multiple installs of WP there right)?
July 16, 2016 at 8:58 pm #57697advexpMemberThere are 3 WP websites that we manage on our server account; however only lifestreams.org is installed on the root directory (public_html), while the other 2 are installed in their own sub-folders (their domains point to those sub-folders). Not sure if this structure has anything to do with this situation or not. Here’s the content of the lifestreams.org .htaccess file:
suPHP_ConfigPath /home/lifest54/public_html
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# BEGIN HTTPS Redirection Plugin
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>
# END HTTPS Redirection Plugin
# END WordPress
July 16, 2016 at 8:59 pm #57698advexpMemberYes, to clarify – the eStore plugin is part of the lifestreams.org WP install.
July 17, 2016 at 12:27 am #57699advexpMemberFor another https test, I changed the https-redirection plugin setting from WHOLE DOMAIN to force individual pages – all pages on the top nav bar to HTTPS EXCEPT home page and About Us. When I entered store page, and added a product to the cart, then clicked “Proceed to Checkout” – the HTTPS stay GREEN all the way through.
Then, I changed the plugin setting back to the WHOLE DOMAIN, saved it, and now it’s forcing HTTPS as expected all the way from store -> cart -> checkout page. Tested on Safari, Firefox and Chrome. So, I went back to the .htaccess page, and noticed the https-redirection code is now located at the very top of the page – that must be why it wasn’t working consistently throughout the site before:
# BEGIN HTTPS Redirection Plugin
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>
# END HTTPS Redirection Plugin
suPHP_ConfigPath /home/lifest54/public_html
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
July 17, 2016 at 4:11 am #57700adminKeymasterYes, the HTTPS redirection code needs to be at the top of the htaccess file to be effective. By default the plugin should put it at the top.
Looks like you are all sorted now.
July 17, 2016 at 5:46 am #57701advexpMemberThanks for the HTTPS help! So, now that the store -> cart -> checkout is working with https, I just went back and re-tested the Braintree gateway issues that I posted 3 days ago on this thread.
Issue 1: Still processed the same way as noted, except this time, I received this error notice on the store-action result — “Error! City, State, Country data is missing! Cannot track Google Analytics without these data”
In this test, I entered city, state but left out zip and country just for testing purposes when I clicked submit (same as before, except there was no error notice like this). As in the last test purchase, the transaction went through to Braintree merchant account, received a customer thank you confirmation, but no admin sales email notification.
Issue 2: Unchecked Paypal inside the eStore gateway settings, thinking perhaps we could use Paypal option within the Braintree gateway API? Don’t know if the Braintree addon for eStore plugin was configured for this or not.
Issue 3: Is there an AVS or CVV code flag that I missed? I assumed that Braintree would require us to include that field in our submission for security purposes?
Issue 4: Don’t see the checkout page title heading (“Order Information”) that we designated in the eStore Braintree addon settings.
Issue 5: Is there a “store action” page short code? Or alternatively, could we use Avada columns in their fusion forms builder to format the checkout page look?
Lastly, just an aesthetic question – are there any plans to add an option/flag that produces a modal type checkout page like our donate page? — [https://www.lifestreams.org/donate]
Thanks again! Its exciting to be able to use Braintree with eStore!
July 18, 2016 at 5:20 am #57702wpCommerceModerator@advexp, We made some improvements to the Braintree addon recently. I have just sent you the updated version via email. Let me know if you don’t receive it.
-
AuthorPosts
- You must be logged in to reply to this topic.