PayPal Pro - Duplicate transaction

  • Posts: 48
  • Thank you received: 1
9 years 8 months ago #194543

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 2.5.28
-- PHP version -- : 5.4.37

This has only happened once, but its concerning that is happened at all.

We had a customer who had a duplicate transaction on Paypal when paying through the PayPal Pro interface. The Hikashop order only shows a single Paypal transaction ID, but Paypal had two distinct ones at more or less the same time and price.

Our previous cart application was able to avoid this even being a possibility by passing the invoice number along with the DoDirectPayment NVP call, which triggers a duplicate invoice check with Paypal.

We do have invoice numbers being assigned (same as the Order ID), but from looking at the Paypal Pro plugin, it appears there no way to actually associate that with the paypal transaction, since the payment is entirely handled during an onBeforeCreate action, which means the payment is complete in its entirety prior to an order number even being available.

While we can obviously refund this particular customer, we'd really like to figure out a way to prevent a duplicate from happening in the future. Any suggestions here?

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
9 years 8 months ago #194576

Hi,

We've actually added several improvements in HikaShop 2.4.0 to avoid duplicate orders by making sure that several clicks on the finish button do not trigger several orders.
Did that order happened before the upgrade to the HikaShop 2.4.0 version ?

Please Log in or Create an account to join the conversation.

  • Posts: 48
  • Thank you received: 1
9 years 8 months ago #194708

Ah good point. The transaction in question was when we were still running 2.3.5.

Thanks! I'll keep an eye out for any duplicate transactions post-upgrade.

Please Log in or Create an account to join the conversation.

  • Posts: 2
  • Thank you received: 0
9 years 1 month ago #217781

Hikashop 2.6
Joomla 3.4.4
PHP 5.3.29

I'm having the same problem using PayPal Pro plugin
Error 10536: The transaction was refused as a result of a duplicate invoice ID supplied. Attempt with a new invoice ID

How do I correct this?

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
9 years 1 month ago #217848

Hi,

Are you sure that the problem isn't that you had used your PayPal account with another ecommerce solution before ?
In that case, you want to read this:
www.hikashop.com/support/documentation/i...l-error.html#already

Please Log in or Create an account to join the conversation.

  • Posts: 2
  • Thank you received: 0
9 years 1 month ago #217897

We were first using the PayPal advanced plugin, but couldn't authorize without delaying capture. We switched to the PayPal pro plugin which allows us to add shipping when the order is picked, packed and ready to ship - shipping charge calculated and added at the time of shipment - on the PayPal interface.

In our tests, it appears the order / invoice ID gets stuck at its current increment when orders are not immediately completed. For example: the user begins the checkout process, but then decides to change the shipping or payment method. If the user doesn't clear the cart, logout, log back in, maybe clear the browser cache, close then open the browser to establish a new session - place a a test order using a non-PayPal method, then put a new order through checking out via PayPal Pro plugin, the order will succeed and confirm back through PayPal.

Your thoughts?

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
9 years 1 month ago #217938

Hi,

Well, first, having PayPal Advanced support the authorizations with delayed capture is actually really easy. You can just change the line:
"&TRXTYPE=S".
to:
"&TRXTYPE=A".
in the file plugins/hikashoppayment/paypaladvanced.php
In fact, next version of HikaShop will have an option for that in the settings of the payment plugin.

I didn't understand what what the problem with your explanation of the workflow. Could you do something a bit more step by step with links/screenshots so that we can get a better grasp of the situation with the PayPal Pro plugin ?

Please Log in or Create an account to join the conversation.

Time to create page: 0.063 seconds
Powered by Kunena Forum