News:

Support the VirtueMart project and become a member

Main Menu

VM2 Paypal setting

Started by ccchin, October 16, 2011, 19:38:21 PM

Previous topic - Next topic

ccchin

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.

alatak

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"


ccchin

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.

mitchie

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"

nicole2292

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

alatak

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.

nicole2292

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.

alatak

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?

nicole2292

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'

carbon-uk

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.

alatak

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.

carbon-uk

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


alatak

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>


carbon-uk

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.


alatak

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.