Braintree set up

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
User avatar
tripleW
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 46
Joined: Wed Oct 30, 2013 5:38 am

Braintree set up

Post by tripleW » Tue Nov 21, 2017 3:02 am

I'm having trouble setting up the Braintree Payment Gateway for a GoldR12SR1 (build 9380) store.

I'm able to connect with Braintree and go through step 8 of the documentation where you authorize AC.

At this point the screen displays Gateway Mode: Production

But when I click Edit Braintree Configuration to select the methods it says I'm in Sandbox Mode.

The new PayPal button doesn't show on the checkout page and all Credit Cards return an error.

If I select debug there isn't a log for Braintrees.

I also don't see the option for Manual Connection.

Do you have any insight on what could be wrong?

Thank you

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2649
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Braintree set up

Post by Katie » Tue Nov 21, 2017 10:08 am

Hello,

There are a couple different options to register or connect. Which one did you use?

Also, the Gateway Mode is determined before sign-up. In order to switch between Sandbox and Production, you will need to delete/remove the integration and re-add it. You can do this by going to the Configure > Payments > Gateways page. Find the PayPal Braintree Gateway instance and click the red X icon in the far right column.

Thanks
Katie
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

User avatar
tripleW
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 46
Joined: Wed Oct 30, 2013 5:38 am

Re: Braintree set up

Post by tripleW » Fri Dec 01, 2017 2:16 am

Thanks for looking at this, Katie.

These are the steps I'm taking:
1. Add Payment Gateway
2. Select Paypal Braintree Gateway
3. Select Connection Environment: Production
4. Sign In with Braintree (if I try to sign in with PayPal it says I already have a Braintree account connected and to sign in with that)
5. Authorize AbleCommerce and return
6. Edit Braintree Configuration

At this point the screen displays Production Envionment
Image

I then select Payment methods and click save.
At this point I'm back in Sandbox mode.
Image

Do you know why it is changing from Production to Sandbox?

nadeem
Captain (CAPT)
Captain (CAPT)
Posts: 250
Joined: Tue Jul 31, 2012 7:23 pm

Re: Braintree set up

Post by nadeem » Mon Dec 04, 2017 10:02 pm

Hi,

I did investigated the issue and noticed that the UseSandbox parameter is not setting correctly when you press Save button. I have made updates and attached the updated CommerceBuilder.PayPalBraintree.dll. Please use the updated dll and it should fix the issue you are facing.

Let me know if after giving it a try on use production mode. Make sure to backup the original CommerceBuilder.PayPalBraintree.dll file.

Thanks.
Attachments
CommerceBuilder.PayPalBraintree.zip
(34.53 KiB) Downloaded 138 times

Richard47
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 47
Joined: Thu Nov 04, 2010 1:15 pm

Re: Braintree set up

Post by Richard47 » Fri Feb 23, 2018 8:39 am

When I try to setup PayPal Braintree in AbleCommerce GoldR12SR2 (build 9476) by going to admin > Configure > Payments > Gateways > Click on Add Payment Gateway button > Scroll to PayPal Braintree Gateway and click on the green add button I get this error.

Server Error in '/' Application.

An existing connection was forcibly closed by the remote host
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host

Source Error:


Line 62: // INITIALIZE THE FORM
Line 63: Caption.Text = string.Format(Caption.Text, ProviderInstance.Name);
Line 64: ProviderInstance.BuildConfigForm(phInputForm);
Line 65:
Line 66: // DETERMINE IF PAYMENT METHODS SHOULD SHOW FOR THIS PROVIDER

Source File: c:\inetpub\wwwroot\AbleCommerceGold-GoldR12SR2-b9476-WSP\Website\Admin\Payment\AddGateway2.aspx.cs Line: 64

Stack Trace:


[SocketException (0x2746): An existing connection was forcibly closed by the remote host]
System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags) +106
System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) +130

[IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.]
System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) +291
System.Net.FixedSizeReader.ReadPacket(Byte[] buffer, Int32 offset, Int32 count) +32
System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest) +156
System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest) +281
System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest) +49
System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest) +162
System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult) +542
System.Net.TlsStream.CallProcessAuthentication(Object state) +42
System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) +228
System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) +21
System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) +64
System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result) +795
System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size) +52
System.Net.PooledStream.Write(Byte[] buffer, Int32 offset, Int32 size) +21
System.Net.ConnectStream.WriteHeaders(Boolean async) +388

[WebException: The underlying connection was closed: An unexpected error occurred on a send.]
System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request) +283
System.Net.WebClient.DownloadString(Uri address) +100
System.Net.WebClient.DownloadString(String address) +30
CommerceBuilder.Payments.Providers.PayPalBraintree.BraintreeProvider.BuildConfigForm(Control parentControl) +1004
AbleCommerce.Admin._Payment.AddGateway2.Page_Init(Object sender, EventArgs e) in c:\inetpub\wwwroot\AbleCommerceGold-GoldR12SR2-b9476-WSP\Website\Admin\Payment\AddGateway2.aspx.cs:64
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
System.Web.UI.Control.OnInit(EventArgs e) +95
System.Web.UI.Page.OnInit(EventArgs e) +13
System.Web.UI.Control.InitRecursive(Control namingContainer) +139
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +408


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.2633.0

Anyone have any idea what the problem is.

Thanks in Advance Richard
http://www.somethingmorestore.com

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2649
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Braintree set up

Post by Katie » Fri Feb 23, 2018 9:09 am

Hello Richard,

This is a new issue. I have reported it to development. Will give you an update as soon as I can.

Thanks
Katie
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2649
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Braintree set up

Post by Katie » Tue Feb 27, 2018 12:42 am

Hi Richard,

I just wanted to give you an update. The patch is ready, but we need to do one more test on the production server. Hopefully, that will go smoothly and we can get you a file to download very soon.

Thanks
Katie
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

Richard47
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 47
Joined: Thu Nov 04, 2010 1:15 pm

Re: Braintree set up

Post by Richard47 » Tue Feb 27, 2018 10:23 am

Thanks Katie for all the time and effort.
Richard
www.somethingmorestore.com

Richard47
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 47
Joined: Thu Nov 04, 2010 1:15 pm

Re: Braintree set up

Post by Richard47 » Tue Mar 06, 2018 9:46 am

Katie have we heard if the patch is good to go or not
Richard
www.somethingmorestore.com

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2649
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Braintree set up

Post by Katie » Fri Mar 09, 2018 3:34 am

I'm sorry. I will have an answer for you by Monday. It's just been super busy and I haven't had a chance to do the final testing.
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

Richard47
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 47
Joined: Thu Nov 04, 2010 1:15 pm

Re: Braintree set up

Post by Richard47 » Fri Mar 09, 2018 5:41 am

Great thanks Katie,
Richard
www.somethingmorestore.com

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2649
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Braintree set up

Post by Katie » Thu Mar 15, 2018 3:56 am

Hi Richard,

Testing has been completed. I'm attaching two patch files for Gold R12 SR2.

There are two new files that need to be updated in the \bin\ folder. Please make backups before replacing them. Restart IIS or the application pool when finished.

Thanks, and please let me know if this allows you to register now.
Katie
Attachments
Braintree_GoldR12_SR2_patch_WAP.zip
(Web Application project requires recompiling)
(82.45 KiB) Downloaded 111 times
Braintree_GoldR12_SR2_patch_WSP.zip
The WSP patch (Web Site project)
(41.32 KiB) Downloaded 114 times
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

Richard47
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 47
Joined: Thu Nov 04, 2010 1:15 pm

Re: Braintree set up

Post by Richard47 » Sat Mar 24, 2018 6:41 am

Katie sorry for taking so long to get back to you. It is working great thanks for all of your help.
Richard
www.somethingmorestore.com

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2649
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Braintree set up

Post by Katie » Sun Mar 25, 2018 2:54 am

Hi Richard,

No problem! I'm just super happy to hear that it's working again. Good luck and let me know if you have any trouble.

Thanks
Katie
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

meer2005
Captain (CAPT)
Captain (CAPT)
Posts: 245
Joined: Wed Feb 09, 2005 2:00 pm

Re: Braintree set up

Post by meer2005 » Fri Oct 25, 2019 1:15 am

Seeing the same issue with GoldR12SR1. Setup is in production mode but if you click save it switches it to sandbox mode. I don't see the file is still available for download that was listed as a fix?

Also, if you setup in production and then go straight to payment method and assign gateway to paypal the new paypal button shows up at checkout but shows the following error when you click it:
Sorry we cannot connect to PayPal. Please try again in a few minutes.

Overall seems very bugggy. Anyone have success with this? We only want to assign this gateway to paypal. I heard it allows venmo and doesn't require you to leave the site.

downloaded these files and followed the steps here:
http://help.ablecommerce.com/mergedProj ... intree.htm

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2649
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Braintree set up

Post by Katie » Wed Nov 13, 2019 7:34 pm

There is a published patch at the help site. Here is a direct link -

http://help.ablecommerce.com/index.htm# ... 12_SR2.htm

Our version of Braintree does not support Venmo. If you check the page you linked in your post, we include a list of the supported payment methods.

Thanks
Katie
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

Post Reply