Author Topic: PayPal refund VM has created a 'new order'  (Read 599 times)

ch1vph

  • Jr. Member
  • **
  • Posts: 50
  • A beginner
PayPal refund VM has created a 'new order'
« on: December 20, 2018, 13:46:09 pm »
Hi there,

I've just had to do a PayPal refund for the full amount of an item, and for some reason...VM has created a 'new order' with a different Order number / Invoice number?

Although the status of this new order is set to REFUNDED, I just thought that I would manually set the original order's status to refund myself.

Also worth mentioning I received an admin email with a subject line "Refunded order for Joe Bloggs, total £100.00" but the rest of the email looked like a normal order.


VirtueMart 3.2.14
Joomla! 3.8.8
PHP 5.6.3

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27466
  • Always on vacation
    • Jenkin Hill Internet
Re: PayPal refund VM has created a 'new order'
« Reply #1 on: December 20, 2018, 15:44:26 pm »
VM3.2.14is over 8 months old, a lot of development has taken place since then. PayPal refunds are being improved this very moment to improve how it works with partial refunds etc. Test versions are at com_virtuemart.3.4.3.10001 but it is hoped that a full public release including this and many more updates will be made before Christmas
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.4.3.10057 on Joomla 3.9.10 PHP 7.0.33
Testing VM 3.5.0.10097 on Joomla 3.9.10

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2915
  • VirtueMart Version: 3.6.0
Re: PayPal refund VM has created a 'new order'
« Reply #2 on: December 20, 2018, 16:15:08 pm »
Code: [Select]
I've just had to do a PayPal refund for the full amount of an item, and for some reason...VM has created a 'new order' with a different Order number / Invoice number?

 Did you do the refund on PayPal or VM admin screens - please explain what you did

Quote
PayPal refunds are being improved this very moment

PayPal refunds are not being change IMHO - the base PayPal functionality should NOT create a new order

PayPal will send an IPN message for a refund - but that should not generate an order in VM
regards
A

Joomla 3.9.8
php 7.1

ch1vph

  • Jr. Member
  • **
  • Posts: 50
  • A beginner
Re: PayPal refund VM has created a 'new order'
« Reply #3 on: December 20, 2018, 16:29:07 pm »
Quote
Did you do the refund on PayPal or VM admin screens - please explain what you did

I did the refund via PayPal website...

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2915
  • VirtueMart Version: 3.6.0
Re: PayPal refund VM has created a 'new order'
« Reply #4 on: December 20, 2018, 16:50:10 pm »
Order should not have been created - are you using the core VM paypal plugin - not a third party one

Was this new order ID > that the old order ID (not the order number or invoice but the ID)

More information is needed really to help identify this behaviour as IMHO IPN's do not have the functionality to create an order - they simply update existing orders
regards
A

Joomla 3.9.8
php 7.1

ch1vph

  • Jr. Member
  • **
  • Posts: 50
  • A beginner
Re: PayPal refund VM has created a 'new order'
« Reply #5 on: December 21, 2018, 17:04:51 pm »
So these are the Order number / Invoice numbers and I believe I'm using the core VM plugin called: 'vmpayment  / paypal' VM Payment - PayPal

Orginal Order number / Invoice numbers- LI1J075 // 1812195BJX079

Refunded Order number / Invoice numbers - AAFY076 // 181219MD9M080