VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: harikjr on February 07, 2012, 04:12:48 AM

Title: Unable to Process payment (PayPal)
Post by: harikjr on February 07, 2012, 04:12:48 AM
I'm using Joomla 2.5.1 and VM 2.0.1e with a gavick.com e-sport template. Payment method is PayPal (VMPAYMENT_PAYPAL). I am NOT in PayPal sandbox mode.

When ever a user is checking out in the store (http://aleksandrshevchenko.org/%D0%BC%D0%B0%D0%B3%D0%B0%D0%B7%D0%B8%D0%BD (http://aleksandrshevchenko.org/%D0%BC%D0%B0%D0%B3%D0%B0%D0%B7%D0%B8%D0%BD)) - after pressing confirm order - the user is redirected to paypal and then i get this error"

"Unable to process payment. Please contact the merchant as the shipping address provided by the merchant is invalid, and the merchant has requested that your order must be shipped to that address."

I have triple checked everything - everything seems good from my end but paypal is not accepting something - i guess the address.

What i'm noticing: When I try to add a shipping address in the backend of virtuemart for a shopper - it does not get saved in the shoppers shipping field. I press save and it says "Info: user data stored" - but going back to the shopper, there is no address. And when i'm entering the data - all the data is allowed to be entered EXCEPT selecting the "state/province/region" (which is required) - so i'm thinking that that may have something to do here. HOWEVER, if a shopper enters their shipping info in the front end - it will be saved and the state/province/region is saved as well... But both circumstances give me that error.

The order is saved (sometimes) into the "Orders" as pending.

Thank you for your help ahead of time.


[attachment cleanup by admin]
Title: Re: Unable to Process payment (PayPal)
Post by: harikjr on February 07, 2012, 04:26:53 AM
Could it be that the adress is in the wrong format? i've attached an image where the adress is definitely not the format of addresses.

maybe it has to be

Name Last
5555 Street Ave
City, State 96785
Country


would that play a role?

I've tried reordering the field - i'm not allowed to in Joomla (some fields are locked).

[attachment cleanup by admin]
Title: Re: Unable to Process payment (PayPal)
Post by: John2400 on February 08, 2012, 02:34:18 AM
Hi harikjr,

I have receive this message a few times from paypal - I only get this message if the paypal email " set in my configuration"  is not a real paypal account/ can be a test one.

* I set a few false emails just to test the system and they all came up with that message.

* When I used a real or test account that I have set up in paypal - I did not get the message.

* I was doing exactly what you did and tried to fix some addresses in VM.

Just let me know if that make a difference.
Title: Re: Unable to Process payment (PayPal)
Post by: harikjr on February 08, 2012, 02:44:55 AM
it's a real account - we have it set up already on paypal and it works on a different website.
Title: Re: Unable to Process payment (PayPal)
Post by: harikjr on February 08, 2012, 04:17:38 AM
i tried another email address... same issue.

Unable to process payment. Please contact the merchant as the shipping address provided by the merchant is invalid, and the merchant has requested that your order must be shipped to that address.

I've registered as a new user into joomla - made sure i entered all my info correctly, and still same issue. I tripple checked all the setting in the back end.. still no succes..

is anyone else having issues with 2.0.1e and paypal?
Title: Re: Unable to Process payment (PayPal)
Post by: freeme on February 08, 2012, 22:35:56 PM
Same with me.
Experiencing exactly the same problem!
Title: Re: Unable to Process payment (PayPal)
Post by: cas on February 09, 2012, 22:42:37 PM
Same problem with me.  It worked fine in VM 2.0.0, but when I upgraded to VM 2.0.1 the problem started occurring.
Title: Re: Unable to Process payment (PayPal)
Post by: cas on February 10, 2012, 19:23:14 PM
I just upgraded to VM 2.0.1.F with Joomla 2.5.1, but I still cannot checkout using PayPal.  This is a critical problem that customers cannot buy on my site. 
Title: Re: Unable to Process payment (PayPal)
Post by: mangotti on February 10, 2012, 21:29:22 PM
I'll put my vote in on this. Same for me in 2.0.1f using J 1.7.3
Title: Re: Unable to Process payment (PayPal)
Post by: cas on February 11, 2012, 08:34:12 AM
I'm using Joomla 2.5.1 and VM 2.0.1.f.  Here's the details: With one product in the cart in US $, I press the Confirm Order button to check out, it goes to PayPal, but then PayPal immediately gives this message: Unable to process payment. Please contact the merchant as the shipping address provided by the merchant is invalid, and the merchant has requested that your order must be shipped to that address.

This exact product works fine start to finish with Joomla 2.5.1 and VM2.0.0.  Something changed between VM 2.0.0 and 2.0.1.

I do not have any shopper groups set for the products.  As an experiment I tried setting the shopper group for one product to -default- and then -anonymous-, but it gets the same PayPal error for both groups.
Title: Re: Unable to Process payment (PayPal)
Post by: jjk on February 11, 2012, 09:31:21 AM
If I understand your problem correctly, you are getting that message because the customer address you're sending for your test transaction is an invalid address. PayPal verifies addresses supplied - you can't enter fake addresses! (As a customer you can use only those addresses which you actually attached to your paypal account/profile)

For details on how to configure your PayPal merchant account please read this: https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_Appx_BillingShippingAddress (https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_Appx_BillingShippingAddress)
Title: Re: Unable to Process payment (PayPal)
Post by: cas on February 11, 2012, 10:15:02 AM
No, the address is valid and is the same I used with VM2.0.0 that worked.  But it doesn't work with VM 2.0.1.F

As you can see from all the posts, many people are having the same issue and they also validated the address is correct.

This is a critical problem that customers cannot buy products on our websites.  What do we need to do to get this fixed? 
Title: Re: Unable to Process payment (PayPal)
Post by: alatak on February 12, 2012, 16:12:11 PM
Hi,

QuoteI press the Confirm Order button to check out, it goes to PayPal, but then PayPal immediately gives this message: Unable to process payment. Please contact the merchant as the shipping address provided by the merchant is invalid, and the merchant has requested that your order must be shipped to that address.


I fount this documenation:
https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_Appx_BillingShippingAddress
Paypal Address Handling (U.S. Merchants Only)

The best is to have 2 new parameters in Paypal config to handle the address_override, and no_shipping parameters.


Title: Re: Unable to Process payment (PayPal)
Post by: cas on February 12, 2012, 19:36:40 PM
VM Team,

Here are more details to help you find the issue:  I have a production website using Joomla 2.5.1 with VM2.0.0 and the checkout with PayPal works fine.  I used Akeeba to backup and create the exact same website with the same products, customers and settings on a test server, and then all I did was upgrade the test site to VM2.0.1.F, and now checkout with PayPal does NOT work.  This doesn't sound to me (IMHO) like it can be a PayPal issue if I can buy the same product with the same customer using VM2.0.0, but I cannot buy using VM2.0.1.F.  What changed between VM2.0.0 and VM2.0.1.(a-f)?
Title: Re: Unable to Process payment (PayPal)
Post by: alatak on February 12, 2012, 21:48:32 PM
Hi,

Hi,

in the file plugins/paypal/paypal.php
please comment this line ( in the function plgVmConfirmedOrder
  "address_override" => "1",

In the next version, this parameter will be set via the Paypal configuration.

This parameter sets the overriding addresses stored with PayPal
For people who already have PayPal accounts and whom you already prompted for a shipping address before they choose to pay with PayPal, you can use the entered address instead of the address the person has stored with PayPal. 

Please tell me if this was the problem.


Title: Re: Unable to Process payment (PayPal)
Post by: cas on February 12, 2012, 22:58:33 PM
Hi Alatak,

It worked!  You're the best!  Thanks! 

Will this fix be in VM2.0.1.G ?  When will that new version be released?

Thanks,
Chuck
Title: Re: Unable to Process payment (PayPal)
Post by: alatak on February 13, 2012, 17:28:56 PM
Hi,

Great :)

Actually in the next version, i have added 2 parameters in the configuration, to set up the address_override.
Because it is a Paypal configuration feature.


Title: Re: Unable to Process payment (PayPal)
Post by: cas on February 13, 2012, 19:37:10 PM
Hi Alatak,

When you say next version, which version do you mean VM2.0.2?   
Also, will the line of code that is causing the problem at least be commented out in the VM2.0.1.G release to help everyone else? 

Thanks,
Chuck
Title: Re: Unable to Process payment (PayPal)
Post by: buhnad on February 14, 2012, 00:31:08 AM
where exactly to copy it , i opend the .php file but dont know which line to paste it
Title: Re: Unable to Process payment (PayPal)
Post by: cas on February 14, 2012, 00:39:03 AM
You comment out line 171:
"address_override" => "1",

Just change it to this:
// "address_override" => "1",
Title: Re: Unable to Process payment (PayPal)
Post by: buhnad on February 14, 2012, 00:49:27 AM
Thank you and now its working
Title: Re: Unable to Process payment (PayPal)
Post by: cas on February 14, 2012, 01:04:21 AM
Great!  Glad to help. 

VM team, can you release a VM2.0.1.G release with this line commented out to help everyone? 
Title: Re: Unable to Process payment (PayPal)
Post by: mangotti on February 14, 2012, 01:52:17 AM
I just wanted to reply and let you know that when I commented it out, I received many JQuery errors and my site wouldn't load at all. Not sure why JQuery errors though. Anyhow, Instead of commenting it out, I changed it to   "address_override" => "0", and it worked for me. Just in case anybody else comes across this issue as well.

Quote from: alatak on February 12, 2012, 21:48:32 PM
Hi,

Hi,

in the file plugins/paypal/paypal.php
please comment this line ( in the function plgVmConfirmedOrder
  "address_override" => "1",

In the next version, this parameter will be set via the Paypal configuration.

This parameter sets the overriding addresses stored with PayPal
For people who already have PayPal accounts and whom you already prompted for a shipping address before they choose to pay with PayPal, you can use the entered address instead of the address the person has stored with PayPal. 

Please tell me if this was the problem.



Title: Re: Unable to Process payment (PayPal)
Post by: chadgarber on February 14, 2012, 14:15:32 PM
I have  plugins/paypal/vmpayment/paypal.php

is that the file you mean?
Title: Re: Unable to Process payment (PayPal)
Post by: chadgarber on February 14, 2012, 14:58:26 PM
I do not have that file, there is file called, "paypal.php" under vmpayments.. Is that the one you are referring to?

Quote from: alatak on February 12, 2012, 21:48:32 PM
Hi,

Hi,

in the file plugins/paypal/paypal.php
please comment this line ( in the function plgVmConfirmedOrder
  "address_override" => "1",

In the next version, this parameter will be set via the Paypal configuration.

This parameter sets the overriding addresses stored with PayPal
For people who already have PayPal accounts and whom you already prompted for a shipping address before they choose to pay with PayPal, you can use the entered address instead of the address the person has stored with PayPal. 

Please tell me if this was the problem.



Title: Re: Unable to Process payment (PayPal)
Post by: chadgarber on February 14, 2012, 18:17:10 PM
Yup, I found the paypal.php here plugins/paypal/vmpayment/paypal.php and when I comment out the one line it fixed it. Thanks


Quote from: chadgarber on February 14, 2012, 14:58:26 PM
I do not have that file, there is file called, "paypal.php" under vmpayments.. Is that the one you are referring to?

Quote from: alatak on February 12, 2012, 21:48:32 PM
Hi,

Hi,

in the file plugins/paypal/paypal.php
please comment this line ( in the function plgVmConfirmedOrder
  "address_override" => "1",

In the next version, this parameter will be set via the Paypal configuration.

This parameter sets the overriding addresses stored with PayPal
For people who already have PayPal accounts and whom you already prompted for a shipping address before they choose to pay with PayPal, you can use the entered address instead of the address the person has stored with PayPal. 

Please tell me if this was the problem.



Title: Re: Unable to Process payment (PayPal)
Post by: cas on February 15, 2012, 04:11:05 AM
Using Joomla 2.5.1 and just upgraded from VM2.0.1.F to VM2.0.1.H and now when checking out and going to PayPal, the same error is occurring again: Unable to process payment. Please contact the merchant as the shipping address provided by the merchant is invalid, and the merchant has requested that your order must be shipped to that address.
Title: Re: Unable to Process payment (PayPal)
Post by: alatak on February 15, 2012, 08:54:54 AM
Hi,

I am sorry, i don't knw if the fix is included in the H version. But i don't think so. I think i did the fix after.
To check that, please go in the payapl configuration, and look if 2 new parameters has been added. If not, then please wait for the next version. The fix is made, and committed.
Title: Re: Unable to Process payment (PayPal)
Post by: cas on February 15, 2012, 09:06:48 AM
Hi Alatak,

The 2 new parameters are there, and the paypal.php file has this new code:
"address_override" => isset($method->address_override) ? $method->address_override : 0,

When I comment out this line, then it works.

Title: Re: Unable to Process payment (PayPal)
Post by: alatak on February 15, 2012, 09:09:15 AM
Hi,

U do not need to comment out the lines;
Just configure Paypal.

Please tell me if it works then.
Title: Re: Unable to Process payment (PayPal)
Post by: cas on February 15, 2012, 09:22:01 AM
Hi Alatak,

I did configure PayPal.  It gets the error when "Let buyers override their PayPal addresses?" is set to 'Yes'.  When I change it to 'No', then it works okay.  How should this work?  And how should we set: "Prompt buyers for a shipping address" ?
Title: Re: Unable to Process payment (PayPal)
Post by: alatak on February 16, 2012, 12:00:44 PM
Hi,

I have added a link to a Paypal documentation. You can see that the behaviour is different depending if you are a US merchant or not.
Are you a US merchant?
Title: Re: Unable to Process payment (PayPal)
Post by: cas on February 16, 2012, 16:54:48 PM
Hi Alatak,

Yes, I'm a US merchant.  Where is the link to the documentation?
Title: Re: Unable to Process payment (PayPal)
Post by: alatak on February 16, 2012, 18:01:53 PM
Hi,

In the Paypal's configuration tab. Just above the 2 new parameters.
Title: Re: Unable to Process payment (PayPal)
Post by: cas on February 17, 2012, 04:53:20 AM
Thanks Alatak.  That's helpful. 

BTW, when I click on the PayPal help link in VM, it open the PayPal help page in the same tab window where VM was running.  Please have it open the help in a new tab window.  That way we can read the PayPal help text at the same we are looking at the VM config settings. 

Thanks,
Chuck
Title: Re: Unable to Process payment (PayPal)
Post by: alatak on February 17, 2012, 08:54:32 AM
Hi,

Yes you are rigth. I'll do that :)
Title: Re: Unable to Process payment (PayPal)
Post by: cas on February 17, 2012, 19:03:27 PM
Thanks Alatak!   :)
Title: Re: Unable to Process payment (PayPal)
Post by: riverhawk on February 20, 2012, 10:21:46 AM
I'm on J2.5 and VM2.0.1K and I seem to have the "Unable to process payment. Please contact the merchant as the shipping address provided by the merchant is invalid, and the merchant has requested that your order must be shipped to that address." problem.

Did your fix make it into K? I only have this problem when I set the paypal settings to "Yes" for address override and when I set "Prompt for an address and require one" is set. If I comment out the line as described above in the paypal.php file...it seems to work ok.
Title: Re: Unable to Process payment (PayPal)
Post by: portugas on February 20, 2012, 19:43:29 PM
My problem is different, I don´t even get to Paypal, when I try to buy, after I acept the TOS and Confirm the Order, I get the error...
#__virtuemart_order_items função proibida para não vendedores
Couldn't create order items
No order created


There is part of the message wich is translated to pt-PT "função proibida para não vendedores", in english should be something like "function prohibited for non sellers"

Can anyone help me?

Thanks
Title: Re: Unable to Process payment (PayPal)
Post by: portugas on February 21, 2012, 04:21:47 AM
Hopeffuly I have updated to version 2.0.2 K and looks like my problem was solved.
I have tried to upgrade to the N version but got errors whem I tried to access the shop, so, I went back to the K version

I'm a newbie on these things, but I can recognize the great job you are doing... Many Thanks.
Title: Re: Unable to Process payment (PayPal)
Post by: Fintan on February 21, 2012, 08:11:50 AM
I am confused. where do I get 2.0.2k?
Title: Re: Unable to Process payment (PayPal)
Post by: John2400 on February 21, 2012, 08:57:03 AM
We are only using 2.0.1 version K which is now up to 'N".  In the software package in the back end you can see a 2.0.2 in the buttons just ignore that and use the prerelease versions to test.

Don't update using this button yet.

* This is written many times in the forums.

Please backup your site before updating.
Title: Re: Unable to Process payment (PayPal)
Post by: Fintan on February 21, 2012, 09:10:48 AM
Thank you for the clarification. I did ignore that but was confused with:
QuoteI have updated to version 2.0.2 K

I tried the upgrade once a few weeks ago. Wish I hadn't  ;)
Title: Re: Unable to Process payment (PayPal)
Post by: mpulse on April 18, 2012, 00:25:22 AM
Having the same issue.. Dont understand why.. I have 2.0.6 and joomla 2.5.4  and I dont see anything cong related to this in the paypal area of VM

http://i.imm.io/mqdD.png
Title: Re: Unable to Process payment (PayPal)
Post by: John2400 on April 18, 2012, 00:51:25 AM
mpulse,

Hi  in this post the actual ideas have chnged quite a few times. Could you clarify exactly what you are asking - and what you get displayed -. Some people here are using Us _ paypay configuartion, others the normal.
Also your Image - does not dipaly a red warning sign - so You do not have the updated version - or the correct "ext.aio " file uploaded .

you must update both files ?
You will then get a new paypay configuration page. - then test and we can go from there - if solved then -please make the post as such.

* Really it is just an update I think and you will see what others see.
Title: Re: Unable to Process payment (PayPal)
Post by: alatak on April 18, 2012, 00:55:52 AM
Hi,

In the picture , there is no email set.
You can test either with the Paypal sandbox or live. But in all cases you must set either a yur paypal email account, or your sandbox Paypal email .
Title: Re: Unable to Process payment (PayPal)
Post by: rasa-fa on December 29, 2012, 07:30:05 AM
hi

i have problem with vm 2, When I try to add a paypal payment email  in the backend of virtuemart for a shopper - it does not get saved in the paypal payment email field. I press save and it says "Info: user data stored" - but going back to the shopper, there is no email. i update vm2 to vm 2.0.16 , but still i have problem with this.

please help me
Title: Re: Unable to Process payment (PayPal)
Post by: leftyd on January 27, 2013, 06:15:48 AM
I am receiving the same message as posted above, "Unable to process payment. Please contact the merchant as the shipping address provided by the merchant is invalid, and the merchant has requested that your order must be shipped to that address."

Virtuemart 2.0.18a | Jooma 2.5.8

I have tried all of the suggestions listed but am still getting the same message.  The shop currency is set to Canadian but I we have both Canadian & US products and I need for both currencies to be available.  The Canadian addresses work, the US ones do not.
Title: Re: Unable to Process payment (PayPal)
Post by: tanolalano on January 28, 2013, 12:18:43 PM
Today no paypal payment confirmation sent to the store (order), so the confirmation order email doesn't arrive to costumers.
Until Yesterday all paypal payament information goes to the order so the mail confirmation was sent to costumer.
I check paypal payament in my paypal account and all seems right, But no confirmation payament seem sent from paypal to mysite.
Some Ideas?
I've had contact paypal if they change some scripts, but i'm still waiting response
VM 2.0.18a
Joomla 2.5.8
Title: Re: Unable to Process payment (PayPal)
Post by: camble on January 28, 2013, 20:01:17 PM
Quote from: tanolalano on January 28, 2013, 12:18:43 PM
Today no paypal payment confirmation sent to the store (order), so the confirmation order email doesn't arrive to costumers.
Until Yesterday all paypal payament information goes to the order so the mail confirmation was sent to costumer.
I check paypal payament in my paypal account and all seems right, But no confirmation payament seem sent from paypal to mysite.
Some Ideas?
I've had contact paypal if they change some scripts, but i'm still waiting response
VM 2.0.18a
Joomla 2.5.8

I have exactly the same problem (http://forum.virtuemart.net/index.php?topic=112487.0).

Up until today mine was working perfectly. Nothing has been changed but now it has stopped working.

The orders are being saved as pending rather than confirmed, so no emails are being sent out to the customer until you have manually confirmed the order(s) in the backend.

I need this sorting ASAP!
Title: Re: Unable to Process payment (PayPal)
Post by: jenkinhill on January 28, 2013, 23:39:48 PM
PayPal are having big issues today. So instead of complaining here talk to them, or check on x.com.
https://www.x.com/content/update-5-issue-receiving-instant-payment-notifications-ipns-jan-27


If you use PayPal you should sign up for the status RSS feed on this page:  https://www.x.com/developers/paypal/documentation-tools/site-status
Title: Re: Unable to Process payment (PayPal)
Post by: tanolalano on January 29, 2013, 08:20:41 AM
Magically tonight paypal sent confirmation of payments.
Title: Re: Unable to Process payment (PayPal)
Post by: rocarly25 on September 17, 2014, 19:35:02 PM
Hello,

I just want to reply my problem here instead open a new topic. I want to use Paypal Payment Pro for capture credit cards in my business. One of the countries we can ship is Cuba. If as user I specified Cuba as country in the shipping address and go ti confirm the payment I got this error: "This transaction cannot be processed. Please enter a valid country code in the shipping address.". With others countries in the shipping address there are not problems. Exists any restriction for some contries or what could be?

Thanks in advance
Title: Re: Unable to Process payment (PayPal)
Post by: jjk on September 17, 2014, 22:12:31 PM
I'm pretty shure that PayPal ignores/rejects anything related to Cuba. They don't even have Cuba in their list of countries. And if you search the internet, PayPal occationally did close PayPal accounts when they discovered relationships to Cuba.
Title: Re: Unable to Process payment (PayPal)
Post by: alatak on September 17, 2014, 22:16:15 PM
Hello
https://www.paypal.com/cgi-bin/webscr?cmd=_display-country-functionality-outside

Cuba is not on their list.

I guess it is for political reasons.