logo
Welcome to our new AbleCommerce forums. As a guest, you may view the information here. To post to this forum, you must have a registered account with us, either as a new user evaluating AbleCommerce or an existing user of the application. For all questions related to the older version of Gold and earlier, please go to AbleCommerce Gold forum. Please use your AbleCommerce username and password to Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
jdepoy24549696  
#1 Posted : Monday, October 26, 2020 11:42:00 AM(UTC)
jdepoy24549696

Rank: Advanced Member

Groups: Authorized User, Developers, Registered
Joined: 4/17/2019(UTC)
Posts: 80

My client is reporting that all PayPal orders are being marked as "Payment Completed" even if the customer didn't finish the payment in PayPal. How can this be prevented?

Wanna join the discussion?! Login to your AbleCommerce Forums forum account. New Registrations are disabled.

shari  
#2 Posted : Monday, October 26, 2020 12:58:15 PM(UTC)
shaharyar

Rank: Advanced Member

Groups: Admin, Developers, Registered, HelpDesk, Authorized User
Joined: 10/5/2018(UTC)
Posts: 704

Thanks: 5 times
Was thanked: 113 time(s) in 112 post(s)
Are you using paypal express checkout or simple paypal method?
jdepoy24549696  
#3 Posted : Monday, October 26, 2020 1:49:07 PM(UTC)
jdepoy24549696

Rank: Advanced Member

Groups: Authorized User, Developers, Registered
Joined: 4/17/2019(UTC)
Posts: 80

Not PayPal Express, simple method.
Katie S  
#4 Posted : Monday, October 26, 2020 4:21:41 PM(UTC)
Katie S

Rank: Advanced Member

Groups: System, Administrators, Developers, Registered, HelpDesk
Joined: 10/29/2018(UTC)
Posts: 472

Thanks: 4 times
Was thanked: 34 time(s) in 33 post(s)
Hello,

A few things to check -

Make sure the PayPal Notification URL is correct. This is in the PayPal account, under Profile > Selling Preferences > Instant Payment Notification.

You must have the correct SSL link to the AbleCommerce store's "ProcessPayPal.ashx" file.

Check the AbleCommerce Paypal configuration page. It will have the link shown.

Test the checkout, and if it still doesn't work, then you'll need to enable DEBUG mode from the configuration page.

Please keep us updated.

Thanks
Katie
Thanks for your support!

Katie
Secure eCommerce Software and Hosting
jdepoy24549696  
#5 Posted : Wednesday, October 28, 2020 11:40:02 AM(UTC)
jdepoy24549696

Rank: Advanced Member

Groups: Authorized User, Developers, Registered
Joined: 4/17/2019(UTC)
Posts: 80

Hi Katie,
Thanks for helping with this.

I have debugging turned on for PayPal and no errors are showing. I believe that the IPN is also working correctly because when a customer does pay it updates the site correctly.

The problem is when the customer doesn't pay. I don't think the IPN is a factor in this case because this is when the user is redirected to PayPal but doesn't go through any of the payment process.

Here is how I recreate the issue:
1. Add items to Basket and go through AC checkout pages.
2. On the Payment page select and click PayPal.
3. When PayPal page comes up just navigate away.

This is what the order will look like:
Problem Order

My client says this is causing problems with their processing because of showing the "Completed" status when there is no payment.

This is the PayPal configuration:
PayPal Settings

This is the Order Statuses set up:
Order Statuses

So they are wanting to know how to not have the Status of "Completed" show for PayPal orders that have not been Paid.
Katie S  
#6 Posted : Wednesday, October 28, 2020 11:53:48 AM(UTC)
Katie S

Rank: Advanced Member

Groups: System, Administrators, Developers, Registered, HelpDesk
Joined: 10/29/2018(UTC)
Posts: 472

Thanks: 4 times
Was thanked: 34 time(s) in 33 post(s)
I see now.

Which version/build is this?

I need to check and see if this is a bug.

Thanks,
Katie
Thanks for your support!

Katie
Secure eCommerce Software and Hosting
jdepoy24549696  
#7 Posted : Wednesday, October 28, 2020 2:45:23 PM(UTC)
jdepoy24549696

Rank: Advanced Member

Groups: Authorized User, Developers, Registered
Joined: 4/17/2019(UTC)
Posts: 80

It's 9.0.2

thanks
Katie S  
#8 Posted : Saturday, October 31, 2020 10:36:07 AM(UTC)
Katie S

Rank: Advanced Member

Groups: System, Administrators, Developers, Registered, HelpDesk
Joined: 10/29/2018(UTC)
Posts: 472

Thanks: 4 times
Was thanked: 34 time(s) in 33 post(s)
I did a few tests, and each time, the order status was always Payment Pending. Then I took a closer look at your order statuses, and if you compare to the one I attached, you should be able to see the difference. Please have the client change the order status triggers back to the default settings:

default_order_status.png (49kb) downloaded 12 time(s).

This should fix the problem. If the order is placed with no payment, then it will be "Payment Pending". Once the order is paid, then it will change to Shipment Pending. If the paid order only had non-shippable items, then it would skip directly to status Completed.

Thank you,
Katie
Thanks for your support!

Katie
Secure eCommerce Software and Hosting
jdepoy24549696  
#9 Posted : Thursday, November 12, 2020 7:33:30 AM(UTC)
jdepoy24549696

Rank: Advanced Member

Groups: Authorized User, Developers, Registered
Joined: 4/17/2019(UTC)
Posts: 80

Still having problems with this. I changed the Oder Status settings to match what you sent.
order statuses

This happened 2 times again yesterday.
marked complete

Any other ideas?
shaharyartiwana25816656  
#10 Posted : Friday, November 13, 2020 4:11:03 AM(UTC)
shaharyar

Rank: Advanced Member

Groups: Admin, Developers, Registered, HelpDesk, Authorized User
Joined: 10/5/2018(UTC)
Posts: 704

Thanks: 5 times
Was thanked: 113 time(s) in 112 post(s)
I am also unable to reproduce the issue you are mentioning. Can you please confirm that there are no related customizations.
jdepoy24549696  
#11 Posted : Sunday, November 22, 2020 2:29:30 PM(UTC)
jdepoy24549696

Rank: Advanced Member

Groups: Authorized User, Developers, Registered
Joined: 4/17/2019(UTC)
Posts: 80

This is still happening periodically. From user feedback it seems like instead of the user voluntarily exiting the PayPal site, they encounter some kind of error - probably on PayPal's end.

The other thing that I didn't mention was that this was an upgrade from Gold R12 and they use Braintree gateway but PayPal & PayPal Express are using the PayPal gateway. The documentation on how to use PayPal Express with Braintree is lacking.

I did make a change as described by in a previous post: https://www.ablecommerce.com/for...osts/t322-PayPal-Express
"... the _PaymentWidget.cshtml file throws an error because the paymentAmount parameter is missing on line 102.

I didn't see a way to get the amount from the Basket so I changed the line to:
@Html.Action("_PayPalExpressPaymentForm", "PayPalExpress", new { orderId = Model.OrderId, basketId = Model.BasketId, paymentAmount = 0, paymentMethodId = Model.PaymentMethodId })"




shaharyartiwana25816656  
#12 Posted : Monday, November 23, 2020 2:30:48 AM(UTC)
shaharyar

Rank: Advanced Member

Groups: Admin, Developers, Registered, HelpDesk, Authorized User
Joined: 10/5/2018(UTC)
Posts: 704

Thanks: 5 times
Was thanked: 113 time(s) in 112 post(s)
Quote:
https://www.ablecommerce.com/forums/posts/t322-PayPal-Express


The issue described in this forum post was fixed in our latest release 9.0.3.
It is recommended to upgrade to the latest release.

Thanks
Katie S  
#13 Posted : Monday, November 23, 2020 11:57:58 AM(UTC)
Katie S

Rank: Advanced Member

Groups: System, Administrators, Developers, Registered, HelpDesk
Joined: 10/29/2018(UTC)
Posts: 472

Thanks: 4 times
Was thanked: 34 time(s) in 33 post(s)
Quote:
The documentation on how to use PayPal Express with Braintree is lacking


The reason is that our PayPal Express is intended to be used with the PayPal gateway, not with Braintree.

Applying the upgrade from 9.0.2 to 9.0.3 is a good idea. Many issues were fixed in this last update.

Thanks
Katie
Thanks for your support!

Katie
Secure eCommerce Software and Hosting
jdepoy24549696  
#14 Posted : Saturday, December 12, 2020 12:30:57 PM(UTC)
jdepoy24549696

Rank: Advanced Member

Groups: Authorized User, Developers, Registered
Joined: 4/17/2019(UTC)
Posts: 80

Quote:
The reason is that our PayPal Express is intended to be used with the PayPal gateway, not with Braintree.


Ok, if the merchant is using both PayPal Standard, PayPal Express and Braintree, how do you configure that?

They want Braintree to process PayPal Standard.

There is only one configuration page for PayPal.

Should you assign the PayPal Payment Method to the PayPal gateway or the Braintree gateway?

This is what's not clear.

mbartens21179672  
#15 Posted : Wednesday, March 23, 2022 2:14:12 PM(UTC)
mbartens21179672

Rank: Newbie

Groups: Authorized User, Developers, Registered
Joined: 3/9/2022(UTC)
Posts: 4

Originally Posted by: Katie S Go to Quoted Post
Hello,

A few things to check -

Make sure the PayPal Notification URL is correct. This is in the PayPal account, under Profile > Selling Preferences > Instant Payment Notification.

You must have the correct SSL link to the AbleCommerce store's "ProcessPayPal.ashx" file.

Check the AbleCommerce Paypal configuration page. It will have the link shown.

Test the checkout, and if it still doesn't work, then you'll need to enable DEBUG mode from the configuration page.

Please keep us updated.

Thanks
Katie


I'm having the same issue. Before a person finishes with PayPal the order is created. How do I prevent an order from being created if they didn't finish the PayPal checkout process?

Also, where is the ProcessPayPal.ashx located? I've enabled Debug Mode, where is the log file?
I'm working with Version: 9.0.5.6938
nadeem  
#16 Posted : Friday, March 25, 2022 6:23:06 AM(UTC)
nadeem

Rank: Advanced Member

Groups: Administrators, Developers, Registered, HelpDesk, Authorized User, Admin, System
Joined: 10/11/2018(UTC)
Posts: 110

Thanks: 19 times
Was thanked: 18 time(s) in 18 post(s)
Quote:
I'm having the same issue. Before a person finishes with PayPal the order is created. How do I prevent an order from being created if they didn't finish the PayPal checkout process?


This is by design in standard PayPal implementation in AbleCommerce. The order is first created and then sent over to PayPal for payment. Once the payment is made, the order is updated through IPN. You can use the PayPal Express Checkout where the user is first redirected to PayPal for payment and then come back to website to complete the order.

Quote:
Also, where is the ProcessPayPal.ashx located?


There is no ProcessPayPal.ashx physical file in AC9. This is handled through route handler where the requested is mapped and routed to IPN processor for updating order info. The files RouteProvider.cs and IpnProcessor.cs are located under the path /IntegratedProviders/PayPal/ inside the PayPal plugin full source code.

Quote:
I've enabled Debug Mode, where is the log file?


The log file should be under the path Website/App_Data/Logs/.

Hope this helps. Thank you!
Users browsing this topic
Guest (3)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.