VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: milemaker on October 22, 2011, 02:10:44 AM

Title: Paypal Payment / Status / Notification
Post by: milemaker on October 22, 2011, 02:10:44 AM
i have small site jaimelesmacarons.co.nz/online-shop using Joomla 1.7.2 / VM  1.9.8i

the paypal payment works fine but the notification and status does not get updated automatically based on successful payment. even though i can login to VM and change order status manually from "pending" to "confirmed" is there a way to automate this process?

the desired logic: paypal payment = success / paypal redirects to "thank you" page / vm - status updates from "pending" to "confirmed" automatically / email notifications are sent automatically. (i believe this is how VM 1.1.9 works, isn't it).

in VM 1.9.8 does "confirmed" stands for - vendor accepted order or "confirmed" = paypal payment received successfully?

much appreciated
michal



Title: Re: Paypal Payment / Status / Notification
Post by: alatak on October 22, 2011, 09:57:07 AM
Hi,

Please update to the J version. I had a bug in the I version.

Remeber to update the component Com_virtuemart, and the one called com_vituemart_iao that contains all plugins and modules.
Thanks,
Title: Re: Paypal Payment / Status / Notification
Post by: milemaker on October 23, 2011, 16:53:35 PM
Alatak, thank you very much for your reply

i have updated to J version and run test paying though paypal. the issue is partially resolved.

confirmation email gets sent to shopper and status in the email reads "Order confirmed.. you bought and confirmed an order.."

on the other hand. no confirmation email is sent to vendor neither administration status updates from "pending" to "confirmed"

VM Order Details:

Date Added                                   Shopper Notified?   Status   Comment
Monday, 24 October 2011 03:22   Yes                           Pending   
Monday, 24 October 2011 03:24   No      

changing status manually triggers error:

vmError: The workflow for or P is unknown, take a look on model/orders function handleStockAfterStatusChanged

then email is sent to shopper - status "pending"
Title: Re: Paypal Payment / Status / Notification
Post by: alatak on October 25, 2011, 08:57:07 AM
Hi,

The payment workflow in VirtueMart 2 is different from VM1.
For example the order is only sent to the customer and the vendor, when the shop receives a notifcation from paypal saying that the payment is confirmed.
QuoteVM Order Details:
Date Added                                   Shopper Notified?   Status   Comment
Monday, 24 October 2011 03:22   Yes                           Pending   
Monday, 24 October 2011 03:24   No     
The payment status should have been set to confirmed. Did you set up correctly in the payment configuration?

Quotechanging status manually triggers error:

vmError: The workflow for or P is unknown, take a look on model/orders function handleStockAfterStatusChanged
I will check that .
Title: Re: Paypal Payment / Status / Notification
Post by: milemaker on October 25, 2011, 10:14:47 AM
thanks for the workflow clarification. (i have also noticed that if order is placed but canceled at the paypal payment page it gets automatically deleted from VM which is great.)

i have attached print screens of my settings. i believe it should be set up correctly.



[attachment cleanup by admin]
Title: Re: Paypal Payment / Status / Notification
Post by: alatak on October 25, 2011, 12:01:38 PM
Hi,

And you do have updated aio?

Quotethanks for the workflow clarification. (i have also noticed that if order is placed but canceled at the paypal payment page it gets automatically deleted from VM which is great.)
yes, we do not want to keep those orders.
Title: Re: Paypal Payment / Status / Notification
Post by: milemaker on October 26, 2011, 07:48:15 AM
yes i did.

i am building another site and tested paypal process there as well. new install of 1.9.8j and aio on Joomla 1.7.2.

i am getting similar results. payment is accepted by paypal. vm sends email with title "[5ae5cf30], Confirmed order at Aroha Drinks, total $<b>0.10</b> NZ". Order  status"confirmed". order page in VM does not update its's tatus but remains as "pending".

i can change status half way down the page but that does not trigger any action.

changing status at the top as "update status" gives error: vmError: The workflow for or C is unknown, take a look on model/orders function handleStockAfterStatusChange. email is sent saying "new status - pending".

am i the only one experiencing the issue?

thanks,
m.


[attachment cleanup by admin]
Title: Re: Paypal Payment / Status / Notification
Post by: alatak on October 26, 2011, 14:02:12 PM
Hi,

I am going to have a look at your problem.
Title: Re: Paypal Payment / Status / Notification
Post by: milemaker on October 31, 2011, 00:50:00 AM
Hi Alatak,

it was great to see the new "k" subversion. i have tested it quickly and noticed a lot of improvements, great work.

I can now manually update order status too and the error message is gone as well.

On the other hand VM still does not update its status from "pending" to "confirmed" automatically. Using Paypal as an payment option.

One other minor thing. The "update status" pop up displays two "order status" drop down fields. the one at the bottom often times overlaps the "save" and "cancel" buttons. ( i have attached print screen. i am using mac and chrome browser).



[attachment cleanup by admin]
Title: Re: Paypal Payment / Status / Notification
Post by: alatak on October 31, 2011, 09:07:02 AM
Hi,

QuoteOn the other hand VM still does not update its status from "pending" to "confirmed" automatically. Using Paypal as an payment option.
Yes i saw it. And i have already ifixed it but after the k release :).
Title: Re: Paypal Payment / Status / Notification
Post by: milemaker on October 31, 2011, 09:33:51 AM
excellent!

is there any way i could get a hold of the updated files?

big thanks.
Title: Re: Paypal Payment / Status / Notification
Post by: alatak on October 31, 2011, 09:36:45 AM
Hi,

If you are so eager, :) then you can use the svn.
http://dev.virtuemart.net/projects/virtuemart/wiki/Setting_up_a_Development_Environment

and you should read that also:
http://forum.virtuemart.net/index.php?topic=85643.0