VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: ccchin on October 16, 2011, 19:38:21 PM

Title: VM2 Paypal setting
Post by: ccchin on October 16, 2011, 19:38:21 PM
I use paypal sandbox to test my virtuemart2 1.9.8i in joomla 1.7

I set the IPN to www.mydomain.com/administrator/components/com_virtuemart/notify.php
Auto Return set to On
and the URL is www.mydomain.com
PDT is also set to ON

my problem is after i paid in paypal sandbox, the page won't return to my site
is the above setting incorrect??
I want to assure the setting before directing the vm2 to a real paypal account
Thank You.
Title: Re: VM2 Paypal setting
Post by: alatak on October 17, 2011, 08:50:50 AM
HI,

VirtueMart version 2 is different from VM1.
There is NO notify.php file in the administrator folder.

The IPN is this one:
yourdomain.com/index.php?option=com_virtuemart&view=paymentresponse&task=paymentnotification&tmpl=component&pelement=paypal&pm="your order number"

Title: Re: VM2 Paypal setting
Post by: ccchin on October 17, 2011, 10:57:50 AM
thank you alatak!!
the auto return problem hv been solved

but there is another problem
when the payment is completed, the quantity od good in the cart remain the same in the front end. And when I check the order state in the backend, the order is still in a "pending" state but not a "confirmed" one.
Title: Re: VM2 Paypal setting
Post by: mitchie on November 24, 2011, 18:16:12 PM
Quote from: alatak on October 17, 2011, 08:50:50 AM
HI,

VirtueMart version 2 is different from VM1.
There is NO notify.php file in the administrator folder.

The IPN is this one:
yourdomain.com/index.php?option=com_virtuemart&view=paymentresponse&task=paymentnotification&tmpl=component&pelement=paypal&pm="your order number"



In order to let people like me have the right info, please note:
The IPN is this one:
yourdomain.com/index.php?option=com_virtuemart&view=paymentresponse&task=paymentnotification&tmpl=component&pelement=paypal&pm="your_payment_method_id"
Title: Re: VM2 Paypal setting
Post by: nicole2292 on November 29, 2011, 06:46:29 AM
Thanks Mitchie for the above information.

However I am still have  problems with Auto Return. Did you sort this out on your site.

When I have auto return 'on' and my url set to http://mydomain.com/index.php?option=com_virtuemart&view=paymentresponse&task=paymentnotification&tmpl=component&pelement=paypal&pm=1 (where 1 is my payment method id)

It returns and says "thankyou for your order" but it does not remove the product from the cart and it does not send the order emails.

If I turn Auto Return 'off' in paypal then I place a test order and manually click to return then the return URL is exactly as above: http://mydomain.com/index.php?option=com_virtuemart&view=paymentresponse&task=paymentnotification&tmpl=component&pelement=paypal&pm=1 however I do in fact receive the payment emails and the cart is emptied.

Is there a bug with Auto Return? Why doesn't it work with auto on?

Best Regards,

Nicole
Title: Re: VM2 Paypal setting
Post by: alatak on November 29, 2011, 08:12:06 AM
Hi,

QuoteIt returns and says "thankyou for your order" but it does not remove the product from the cart and it does not send the order emails.
Did you actually pay?
If you don't pay, the order staus is not updated, and the cart is not emptied.
The reason for that  is to allow the client to change his payment method if he wants too.
Title: Re: VM2 Paypal setting
Post by: nicole2292 on November 29, 2011, 10:43:11 AM
Yes I actually paid and the money was taken and then the auto return happened and it was the problem described of emails not sending.
Title: Re: VM2 Paypal setting
Post by: alatak on November 29, 2011, 10:49:00 AM
Hi,
But now, if you use the file i have modified on your web site, the emails are sent.
And the orders are updated.
Is it correct?
Title: Re: VM2 Paypal setting
Post by: nicole2292 on November 29, 2011, 11:41:30 AM
The orders are updated to "confirmed" perfectly since your help. Thankyou very much. They are confirmed upon payment, even if the user never returns to the site - excellent!
Although strangely this is now working correctly even if I use the original paypal.php file. So I'm not 100% sure what else you changed - either way the order status is correctly updated so I am happy with that.

However, as per this forum the emails are only sent and the cart is only emptied if Auto Return is off and the user manually clicks to return to the site.

Although you have sorted out the order status, unfortunately it seems that the changes you made did not really fix the problem of the emails and cart. This problem seems to be directly related to the Auto Return in paypal being either 'on' or 'off'
Title: Re: VM2 Paypal setting
Post by: carbon-uk on March 06, 2012, 11:16:25 AM
Quote from: nicole2292 on November 29, 2011, 11:41:30 AM
The orders are updated to "confirmed" perfectly since your help. Thankyou very much. They are confirmed upon payment, even if the user never returns to the site - excellent!
Although strangely this is now working correctly even if I use the original paypal.php file. So I'm not 100% sure what else you changed - either way the order status is correctly updated so I am happy with that.

However, as per this forum the emails are only sent and the cart is only emptied if Auto Return is off and the user manually clicks to return to the site.

Although you have sorted out the order status, unfortunately it seems that the changes you made did not really fix the problem of the emails and cart. This problem seems to be directly related to the Auto Return in paypal being either 'on' or 'off'

Can you post a copy of this file as I have the same issue exactly.

Thanks.
Title: Re: VM2 Paypal setting
Post by: alatak on March 06, 2012, 13:02:02 PM
Hi,

QuoteThis problem seems to be directly related to the Auto Return in paypal being either 'on' or 'off'
Great, thanks.. there is a auto return parameter in Paypal. I am testing it.
A lot of payment methods do auto return by default.
Title: Re: VM2 Paypal setting
Post by: carbon-uk on March 06, 2012, 15:27:22 PM
Thanks for the reply.

The site I am looking at is set to auto reply.

Customers are getting a blank page and the payment is still pending.

Return URL www.domain.com/index.php?option=com_virtuemart&view=pluginresponse&task=pluginresponsereceived&pm=1

Title: Re: VM2 Paypal setting
Post by: alatak on March 06, 2012, 15:35:41 PM
Hi,

OK.
It looks like that in paypal i also need to set a parameter called rm to 2, in order to this auto return to work. Am i wrong? When the paramter is set in the paypal config, it works automatically? I was not able to find how to set it via the sandbox account;

QuoteCustomers are getting a blank page and the payment is still pending.
Which VM version are you using?
In the VM2.0.2, you should have this a a return URL:
www.domain.com/index.php?option=com_virtuemart&view=pluginresponse&task=pluginresponsereceived&pm=1&on=<your_order_number>

Title: Re: VM2 Paypal setting
Post by: carbon-uk on March 06, 2012, 15:42:18 PM
It is VM 2.0.2, but this has been upgraded a couple of times.

I was thinking maybe the paypal.php was incorrect? do you have a copy I could compare to?

Thanks so much for your help.

Title: Re: VM2 Paypal setting
Post by: alatak on March 06, 2012, 15:52:13 PM
Hi,

Are you sure you have updated the AIO component also?
You can compare the paypal.php file by downloading the VM2.0.2 version from here:
http://dev.virtuemart.net/projects/virtuemart/files
unzip the downloaded file, unzip the aio file.
Paypal.php is inside the folder: admin/plugins/vmpayment/paypal.
If they are not the same, i suggest that you update the AIO component via the Joomla installer.
Title: Re: VM2 Paypal setting
Post by: carbon-uk on March 06, 2012, 16:09:49 PM
Spot on it was the aio outdated. I updated them and payment was confirmed.

One last thing however when viewing orders if I click on the icon to view the order details it gives an error:

The website encountered an error while retrieving http://domain.com/index.php?option=com_virtuemart&view=orders&layout=details&format=pdf&tmpl=component&virtuemart_order_id=135&order_number=e568a948&order_pass=p_5898cb. It may be down for maintenance or configured incorrectly.

Any ideas?
Title: Re: VM2 Paypal setting
Post by: alatak on March 06, 2012, 16:25:05 PM
Hi,

You should always always always :) update both the component and the AIO.
In VirtueMart configuration do you have a path for sale? The invoices are created and stored under path-for-sale/invoices.
Title: Re: VM2 Paypal setting
Post by: jenkinhill on March 06, 2012, 18:07:19 PM
carbon-uk see http://forum.virtuemart.net/index.php?topic=98633.0
Title: Re: VM2 Paypal setting
Post by: carbon-uk on March 08, 2012, 09:34:20 AM
Thanks for this....

I have modified the path as required which didn't work. I then check ed my config file for log path which was:

/home/sites/domain.com/public_html/logs

so I set the path to:

/home/sites/domain.com/public_html/mydirectory/

Nothing is being created in this folder so I can only assume either the path is wrong(but the log file works) or the invoice is not being created. Also the e-mail confirmation that is going out after succesful payment contains no data:

Bill To   Ship To
SKU   Qty   Product Name   Price   Discount   Total
Product prices result   $0.00   $0.00
$0.00
$0.00
Total   $0.00   $0.00

All blank.

Any ideas?

Title: Re: VM2 Paypal setting
Post by: dron_gr on March 17, 2012, 00:46:53 AM
Hi Alatak!

I see that when after PayPal payment is successful and its redirect from PayPal successful payment page to my VM "Thank you" page which will have to contain an order information (payment name, order number and amount) it warns the client by following message "Although this page is encrypted, the information you have entered is to be sent over an encrypted connection that could easily be read by a third party. Are you sure you want to continue sending this information?" If the client push the button "continue" in time the order will be sent if he a little bit late nothing will be sent. Auto return is ON, PDT is OFF. IPN is on. Return URL is: http://www.mydomain.com/index.php?option=com_virtuemart&view=pluginresponse&task=pluginresponsereceived&pm=[payment_order_number]
Title: Re: VM2 Paypal setting
Post by: alatak on March 17, 2012, 11:51:24 AM
Hi,

Quote"Although this page is encrypted, the information you have entered is to be sent over an encrypted connection that could easily be read by a third party. Are you sure you want to continue sending this information?" If the client push the button "continue"
Hum... Are you using internet explorer? I think that is the reason.
I will try to solve it because i agree , for certain customers , this migth afray them.
Title: Re: VM2 Paypal setting
Post by: dron_gr on March 18, 2012, 23:03:29 PM
Hi, Alatak.

"Are you using internet explorer?" - No i am using FireFox.
After successful payment when PayPal sends a notification to VM about it there should not be an warning message otherwise an email order will not be sent. Thats because Firefox (or IE or any another browser) asking client to send or not some informations from HTTPS to HTTP and if client need some time to think there is too late and nothing will be sent neither information package about successful payment neither oreder email.
Please solve that issue for 2.0.0 it is really nessesary because many users do not want to upgrade to newer versions.

Respectfull.
Title: Re: VM2 Paypal setting
Post by: R1-Limited on September 09, 2012, 17:32:31 PM
is this all resolved in 2.0.10?
Title: Re: VM2 Paypal setting
Post by: humera on October 05, 2012, 07:54:07 AM
Hi,
Can you please tell me where this "your order no" comes from? I believe it's a constant. I need to set up Notification URL which requires a fixed URL and order no should be variable. How to sort it out?

Thanks



Quote from: mitchie on November 24, 2011, 18:16:12 PM
Quote from: alatak on October 17, 2011, 08:50:50 AM
HI,

VirtueMart version 2 is different from VM1.
There is NO notify.php file in the administrator folder.

The IPN is this one:
yourdomain.com/index.php?option=com_virtuemart&view=paymentresponse&task=paymentnotification&tmpl=component&pelement=paypal&pm="your order number"



In order to let people like me have the right info, please note:
The IPN is this one:
yourdomain.com/index.php?option=com_virtuemart&view=paymentresponse&task=paymentnotification&tmpl=component&pelement=paypal&pm="your_payment_method_id"
Title: Re: VM2 Paypal setting
Post by: alatak on October 05, 2012, 09:12:29 AM
Hello
QuoteCan you please tell me where this "your order no" comes from? I believe it's a constant.
The order number is sent by Paypal in the post variable. It is not a constant.
Title: Re: VM2 Paypal setting
Post by: copyman on October 16, 2012, 01:05:13 AM
I have problem with  VM 2.0.8c / PayPay sandbox account.  After successfully payment it returns to site and says "thank you for your order" , invoice number .... but it does not change order status to "confirmed".  Email-s send successfully with status "pending".

IPN set to : http://domain.com/index.php?option=com_virtuemart&view=paymentresponse&task=paymentnotification&tmpl=component&pelement=paypal&pm="3"

Аlso tested - http://domain.com/index.php?option=com_virtuemart&view=paymentresponse&task=paymentnotification&tmpl=component&pelement=paypal&pm="your_order_number"

paypal.log

2012-10-15 23:18:21
message: plgVmConfirmedOrder order number: 6989017

2012-10-15 23:19:25
message: paypal_data 65.45   6989017   Ineligible   7REAXYVPW5SLA   0.00   16:19:20 Oct 15, 2012 PDT   Pending   windows-1252   Milen   2.90   3.7   b7b3a4544a77419d8911b54a5aad8fab   verified   smokin_1350314384_biz@gmail.com   1   AREZ5pZzrfw37KA65Dy9Vfv0rx1PAc-q4fCw3VU6CFQ9XFrn35BhAbHE   milen_1350314270_per@gmail.com   4RF977021B556520S   instant   Hristov   smokin_1350314384_biz@gmail.com      27TZC8XSTFXAQ   paymentreview   web_accept   Invoice No. :: 6989017   EUR      US   1   0.00   b7b3a4544a77419d8911b54a5aad8fab      0.00   5593cd673ed5b

2012-10-15 23:19:25
message: process IPN

2012-10-15 23:19:25
message: process IPN OK

2012-10-15 23:19:25
message: plgVmOnPaymentNotification return new_status:P

2012-10-15 23:19:25
message: Notification: emptyCart b7b3a4544a77419d8911b54a5aad8fab
 


Any ideas?

SOLVED

http://forum.virtuemart.net/index.php?topic=104994.msg349451