VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: alatak on March 04, 2014, 10:55:11 AM

Title: How to configure PayPal and other questions
Post by: alatak on March 04, 2014, 10:55:11 AM
Hello

How to configure it
1. In VM2 administration menu go to 'Shop' - 'Payment Methods'
2. Select "New" from the top menu.
3. Give it a name, i.e. "PayPal", set the checkbox to 'Published' = "Yes", select "VM-Payment, PayPal" in the dropdown list and click on 'Save'.
4. Now go to the second tab and configure your PayPal payment method. For testing you need to enter at least a PayPal payment (test-customer) email and a test-merchant (Sandbox) email.
5. Save your PayPal payment method configuration.

Setting a sandbox: http://docs.virtuemart.net/tutorials/28-plugins-payment-shipment-and-others/116-setting-a-testing-environment-in-paypal.html
Configuring PayPal Standard: http://docs.virtuemart.net/component/content/article/39-virtuemart-2/manual/shop-menu/paypal/117-paypal-standard.html

There are no payment methods in the dropdown
Install the "AIO" component. AIO is the acronym for All In One and includes all payment,shipment, custom fields, shopper plugins and VM modules. To install this component is mandatory for VirtueMart.
When updating VirtueMart, it is also required that you update the AIO component

I cannot find PayPal Advanced
Here is the list of the PayPal products provided by the PayPal plugin:
The PayPal products included i the plugin: http://docs.virtuemart.net/manual/39-paypal/115-paypal.html

Why are there no instructions for the URL for the IPN?
You do not need to configure the IPN in your PayPal account. PayPal will use the IPN provided by the Plugin

The order status is not updated when a payment has been done
There might be several reasons for that:
1) Your virtueMart version is < 2.0.26
We do not SEF the IPN URL anylonger. To fix this issue
in file /plugins/vmpayment/paypal/paypal.php
replace this line
"notify_url"       => substr(JURI::root(false,''),0,-1) . JROUTE::_('index.php?option=com_virtuemart&view=pluginresponse&task=pluginnotification&tmpl=component', false),

with this line
"notify_url"       =>JURI::root() .  'index.php?option=com_virtuemart&view=pluginresponse&task=pluginnotification&tmpl=component' . '&lang='.JRequest::getCmd('lang','') ,


2) Check if you received the IPN
In  your browser, try to access this URL http://yourdomain.com/index.php?option=com_virtuemart&amp;view=pluginresponse&amp;task=pluginnotification&amp;tmpl=component . There can be a problem here if you use 3rd party SEF since some member report that joomla redirect it to 404 when accessing this notification url.

3) Check your server logs, and search for "task=pluginnotification".
- If you don't find it, then it means that you did not receive the IPN from PayPal. PayPal should try again several times
- you found it: check the HTTP status
200, then everything is fine, the IPN has been received...
If anything else (like 500, 404 or 3xx) then you got a problem.
500 (error) can be checked in your php error log
404 (error) - missing url (either a wrong configured https, or the URL is not reachable from outside world like paypal)
3xx - a redirect by SEF or htaccess

4) your HTTPS status is 200, but your order still does not update
Check the security plugins, or components you have installed on your website, and disable them one by one.
Some security plugins remove $_POST, and the IPN cannot be validated.


I got an email
An error with your payment PayPal on your store Blablabla. The details are logged in the file paypal.x.log.php

With versions >= 2.0.26 whenever an error occurs, the payment plugins send you an email, and ask you to check your log file. The file paypal.x.log.php is stored in the log folder. The value in x is the payment method id.
- To know where is your log folder, go int the Joomla configuration, tab system and check your parameter Path to Log Folder .
- to know what is your payment method id, go in the payment method list, and check the number in the last column id.

Possible reasons for this email
1)Primary email address issue
In VirtueMart version 2.0.26x we added some extra security checking. One of them is to check that the transaction was really done on your PayPal account.
If you are not using your Primary email address in the PayPal configuration, you may have this problem.
Go in file plugins/vmpayment/paypal/paypal/helpers/paypal.php, search for the function _check_email_amount_currency
and replace those lines
if ($this->_method->paypalproduct =="std") {
            if ($paypal_data['receiver_email']!=$this->merchant_email and $paypal_data['business']!=$this->merchant_email) {
            $errorInfo=array("paypal_data" =>$paypal_data, 'merchant_email' =>$this->merchant_email);
                $this->debugLog($errorInfo, 'IPN notification: wrong merchant_email', 'error', false);
                return false;
            }
        }


with those lines
if ($this->_method->paypalproduct =="std") {
            if (strcasecmp($paypal_data['business'],$this->merchant_email)!=0 ) {
            $errorInfo=array("paypal_data" =>$paypal_data, 'merchant_email' =>$this->merchant_email);
                $this->debugLog($errorInfo, 'IPN notification: wrong merchant_email', 'error', false);
                return false;
            }
        }

This issue is fixed in versions > 2.0.26x

2) IP address issues
When the IPN is received, we check that it comes from PayPal. Sometimes, this check fails even though the IP comes from PayPal, we are at the moment investigating this issue.


I get a white page when calling https://www.domain.com/index.php?option=com_virtuemart&view=pluginresponse&task=pluginnotification&tmpl=component
This is absolutely normal. This page is not meant to display anything. It is the page used to answer to the PayPal IPN.

Title: Re: How to configure PayPal and other questions
Post by: t68 on March 05, 2014, 18:40:43 PM
I suspect that something is not right with my hosting regarding getting paypal ipn through to vm. But not sure what I should tell them about $_POST and stuff. Would much appreciate if someone could put some good wording in my mouth so I can pass it on to my hosting.

Skickat från min HTC One via Tapatalk

Title: Re: How to configure PayPal and other questions
Post by: t68 on March 06, 2014, 08:15:25 AM
Hi again!
As adviced here I tried accessing this url on my shop:
http://mydomain.com/index.php?option=com_virtuemart&amp;view=pluginresponse&amp;task=pluginnotification&amp;tmpl=component

But got this error message:
"Fatal error: Call to undefined function myFile() in /home/k/kulturve/www/plugins/vmpayment/paysondirect/paysondirect.php on line 369"

So it looks like I get an error concerning another payment plugin I use, payson.

On my VM I got problems with payment statuses not being updated in my orders list by Paypal but Payson works.


Title: Re: How to configure PayPal and other questions
Post by: alatak on March 06, 2014, 10:10:50 AM
Hello
Obiously Payson do not work correctly.
Disable it in Joomla and check if the order status in Paypal is updated.
If it is, then ask the Payson developer to check his code.
Title: Re: How to configure PayPal and other questions
Post by: t68 on March 06, 2014, 12:48:52 PM
Thanks for input!... and guess what? Just checked in on Payson and discovered that Im not running their latest version of the plugin.
Stupid mistake on my side. Gonna update asap. Hopefully this fixes my issues.

Skickat från min HTC One via Tapatalk

Title: Re: How to configure PayPal and other questions
Post by: t68 on March 08, 2014, 23:37:43 PM
Me again. Updating the Payson plugin did the trick. Now both PayPal and Payson payments are updating order status in vm as they should.

Thanks for pointing me in the right direction!

Skickat från min HTC One via Tapatalk

Title: Re: How to configure PayPal and other questions
Post by: atomixit on July 10, 2014, 17:25:25 PM
Hi all,

I really need help as to where I can find the vm paypal download (Free version) I deleted the built in paypal plugin because I couldn't configure it. It would only give me a screen full of text.

Any help would be appreciated.
Title: Re: How to configure PayPal and other questions
Post by: jenkinhill on July 10, 2014, 17:37:29 PM
Install the VM aio component for your VM version, which should currently be VM2.6.6 - get files  from http://dev.virtuemart.net/projects/virtuemart/files

Never delete plugins, just unpublish them.
Title: Re: How to configure PayPal and other questions
Post by: atomixit on July 17, 2014, 08:37:57 AM
Thanks for the reply JenkinHill

Please see specs below:

PHP Built On    Linux lnxwebr05.cpt.wa.co.za 2.6.32-531.17.1.lve1.2.60.el6.x86_64 #1 SMP Tue Jul 8 11:25:32 EDT 2014 x86_64
Database Version    5.5.36-cll
Database Collation    utf8_general_ci
PHP Version    5.3.27
Web Server    Apache
WebServer to PHP Interface    cgi-fcgi
Joomla! Version    Joomla! 3.3.1 Stable [ Ember ] 11-June-2014 13:30 GMT
Joomla! Platform Version    Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT

How can I check the Virtuemart version ? ( Totally new to this )

Also a real newby question - I downloaded the latest version of the aio (com_virtuemart.2.6.6_ext_aio)
How do you install it ?
Title: Re: How to configure PayPal and other questions
Post by: GJC Web Design on July 17, 2014, 10:16:28 AM
Quote
How can I check the Virtuemart version ? ( Totally new to this )

Joomla->Extensions->extension manager->manage  or left hand side of every VM admin page

QuoteAlso a real newby question - I downloaded the latest version of the aio (com_virtuemart.2.6.6_ext_aio)
How do you install it ?

as you would for any other extension  Joomla->extensions->extension manager->Upload Package File
Title: Re: How to configure PayPal and other questions
Post by: jenkinhill on July 17, 2014, 16:10:40 PM
Installation/updates procedure - in the docs: http://docs.virtuemart.net/tutorials/installation-migration-upgrade/80-installation-of-virtuemart-2.html
Title: Re: How to configure PayPal and other questions
Post by: atomixit on July 18, 2014, 15:50:11 PM
Thanks for all the help so far,

Still got the same result.

Turns out im on VM 2.9.6, installed the correct packages but still getting the same thing ( As soon as you create a payment method with paypal, the css seems to bomb out and only text is displayed - No config options either )

Cant get any payment options to work - Tried Paygate, Paypal, Payfast ... None of them are working ...
Title: Re: How to configure PayPal and other questions
Post by: jenkinhill on July 18, 2014, 17:00:29 PM
VM2.9.6 is not for use on a live site, it is a development version, pre-release for VM3. There were bugs in 2.9.6, which is why 2.9.8 was released - for further testing. If you are not an experienced Joomla/VM user then you should use VM2.6.6 on Joomla 2.5.22
Title: Re: How to configure PayPal and other questions
Post by: lanthan on July 20, 2014, 21:29:31 PM
Hi,
my PayPal config still does not work correct. My shop does not receive the payment confirmation even payment was successful. So no change of order status and so on.

Today I got the following PayPal-Warning E-Mail "immediate payment confirmation".

I shall check the following link:
https://mydomain.de/index.php?option=com_virtuemart&view=pluginresponse&task=pluginnotification&tmpl=component&lang=de
https://mydomain.de/index.php?option=com_virtuemart&view=pluginresponse&task=pluginnotification&tmpl=component&lang=en

If I call the link in my browser a blank (correct) page appears but the link changes into the following:

https://mydomain.de/de/?option=com_virtuemart&view=pluginresponse&task=pluginnotification&tmpl=component&lang=de

I have a multi language shop. I am using .htaccess with a rewrite url funktion to hide index.php. I think here is the problem.

Any ideas how to solve this problem?

Thanks
Lanthan
Title: Re: How to configure PayPal and other questions
Post by: arnold.pietersen on July 27, 2014, 16:18:09 PM
Hi

What does: Expected max amount mean when configuring the PayPal payment method. We will not know in advance what the amount will be, right?

The explanation is not that clear.

Kind Regards

ARNOLD
Title: Re: How to configure PayPal and other questions
Post by: suvicka on October 03, 2014, 16:48:28 PM
VM 2.6.6
Joomla! 2.5.24
Debug on VM ON

When i dont use PayPal i can normal make an order, when i use PayPal i get this error:

Warning: mcrypt_decrypt(): The IV parameter must be as long as the blocksize in .../administrator/components/com_virtuemart/helpers/vmcrypt.php on line 52
Fatal error: Call to undefined method plgVmPaymentPaypal::setInConfirmOrder() in /.../plugins/vmpayment/paypal/paypal.php on line 399

Some help? :(
Title: Re: How to configure PayPal and other questions
Post by: suvicka on October 06, 2014, 19:08:42 PM
Problem solved from help of "Pavel [byPV.org]" thx

Had wrong version of AIO (probably a new one)
Title: Re: How to configure PayPal and other questions
Post by: anekro on October 25, 2014, 10:33:42 AM
Hi. I'm having problems with stock control and PayPal.

I need pending orders to be cancel; i have a lot of product with only 1 item in stock, and when the order is pending, customers can't buy it, and I have to cancel the order manually.

How can I do that automatically??

Thank You
Title: Re: How to configure PayPal and other questions
Post by: anekro on October 25, 2014, 19:57:37 PM
Thank you.

Finally I changed options, and now only payed orders reserve stock.
Title: Re: How to configure PayPal and other questions
Post by: Marcos82 on November 07, 2014, 06:16:49 AM
Hello

I seem to be having a problem with my paypal during checkout on my site. I am using Joomla version 2.5.27 and Virtuemart  2.6.12, whenever a purchased is being made with paypal, the site does not redirect to the paypal page for payment. It just says thanks for the order. I have no idea what has gone wrong with my paypal plugin. Please all help is welcomed and appreciated. Thanks
Title: Re: How to configure PayPal and other questions
Post by: jenkinhill on November 07, 2014, 12:40:09 PM
Did you not look at/read or search this forum? IF you did you would have come across this thread - right on this very page.  http://forum.virtuemart.net/index.php?topic=126506.0
Title: Re: How to configure PayPal and other questions
Post by: Jessie111 on March 06, 2015, 04:17:47 AM
hi all,

Our site is using the default Paypal Standard payment gateway in Virtuemart 3.0.3

When customer clicks the "Cancel and return to site" in paypal screen, it will clear the product in the cart and gives two errors, see attached.
Why it says "the product out of stock"? But the product is not sold.
Then if you refresh the page, it will just give a notice "You have cancelled your payment."

Is there solution to this? Please help, thanks a lot.

----------------------------------------------------
Also we once changed the payment method from Paypal standard to Paypal express checkout, but when we added products to cart, then clicked the Cart, it would directly go to the Paypal site, customers couldn't double check the products or adjust the products in the cart before going to the paypal site.  What can I do to adjust this?

Best regards,
Jessie
Title: Re: How to configure PayPal and other questions
Post by: mgordon on November 18, 2015, 08:35:55 AM
Just a note using the Hathor template for Administration I was unable to add a payment method or shipping method. I turned on troubleshooting to maximum, and got this error message before adding a payment method:

Notice: Undefined property: JPaginationObject::$active in /customers/9/3/3/countryfisher.no/httpd.www/administrator/templates/hathor/html/pagination.php on line 144 Notice: Undefined property: JPaginationObject::$active in /customers/9/3/3/countryfisher.no/httpd.www/administrator/templates/hathor/html/pagination.php on line 144 Notice: Undefined property: JPaginationObject::$active in /customers/9/3/3/countryfisher.no/httpd.www/administrator/templates/hathor/html/pagination.php on line 144 Notice: Undefined property: JPaginationObject::$active in /customers/9/3/3/countryfisher.no/httpd.www/administrator/templates/hathor/html/pagination.php on line 144


Changing the back end template to ISIS solved the matter.  SO if you have the same issue, try changing your back end template. ;)
Title: Re: How to configure PayPal and other questions
Post by: joaobraga on February 23, 2016, 12:35:23 PM
I have developed a Ecommerce website (virtuemart) The website checks out with PayPal. I am having an issue with IPN.

The situation:

Business PayPal Account checks out on the website goes through to PayPal. PayPal authorises transaction and the money is taken with no problem at all. No error comes back. The order status goes back into the website as confirmed.

Standard PayPal user checks out on the website goes through PayPal authorises the transaction and the money is taken. However I get an error for IP (see below)

ERROR validateIpnContent: VMPAYMENT_PAYPAL_ERROR_POSTING_IPN

The status of the order in the website is Pending.

I get this email: An error with your payment paypal on your store XXX" referencing an error log file, paypal.1.log.php ...

The error log file is this:

#
#<?php die("Forbidden."); ?>

2016-02-23 10:02:51 ERROR validateIpnContent: VMPAYMENT_PAYPAL_ERROR_POSTING_IPN
2016-02-23 10:16:30 ERROR validateIpnContent: VMPAYMENT_PAYPAL_ERROR_POSTING_IPN
2016-02-23 10:29:16 ERROR validateIpnContent: VMPAYMENT_PAYPAL_ERROR_POSTING_IPN
2016-02-23 10:33:20 ERROR validateIpnContent: VMPAYMENT_PAYPAL_ERROR_POSTING_IPN
2016-02-23 10:44:09 ERROR validateIpnContent: VMPAYMENT_PAYPAL_ERROR_POSTING_IPN
2016-02-23 10:54:23 ERROR validateIpnContent: VMPAYMENT_PAYPAL_ERROR_POSTING_IPN
2016-02-23 10:58:09 ERROR validateIpnContent: VMPAYMENT_PAYPAL_ERROR_POSTING_IPN
2016-02-23 11:25:22 ERROR validateIpnContent: VMPAYMENT_PAYPAL_ERROR_POSTING_IPN

The email off the vendor is the same off the paypal sandboc account.

Any sugestion?


VM 3.0.4
Joomla! 3.3.6
PHP 5.3.29
Title: Re: How to configure PayPal and other questions
Post by: oliviadiana on October 11, 2016, 12:28:06 PM
Hey, everyone.

I am currently configuring a Joomla template that is using Virtuemart 3.0.10 and I have trouble with using PayPal standard.
System Configuration:

PHP Built On   Linux vg4.gazduire.ro 2.6.32-531.29.2.lve1.3.11.10.el6.x86_64 #1 SMP Fri Jun 12 15:09:02 EDT 2015 x86_64
Database Version   5.5.28
Database Collation   utf8_general_ci
Database Connection Collation   utf8mb4_general_ci
PHP Version   5.3.27
Web Server   Apache
WebServer to PHP Interface   cgi-fcgi
Joomla! Version   Joomla! 3.5.1 Stable [ Unicorn ] 05-April-2016 22:45 GMT
Joomla! Platform Version   Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
User Agent   Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36

Attached are the errors I commonly get - it is mainly a currency issue: I get an invoice for 141 USD instead of 141 RON (which is pretty bad) or I am just told the payment cannot be made in RON.

I am really at the beginning of this, I really hope I have explained everything clearly.
Awaiting for your reply and thanks in advance.

Best regards,
Olivia
Title: Re: How to configure PayPal and other questions
Post by: oliviadiana on October 11, 2016, 12:30:49 PM
Sorry, forgot to attach screenshots...

Thank you!
Title: Re: How to configure PayPal and other questions
Post by: GJC Web Design on October 11, 2016, 12:35:15 PM
have never recently configured a site with un-supported currencies  but in VM2 I used to convert to USD in the plugin

but in VM3 there are I assume settings for this .. have u experimented to see if the conversion is done automatically?
Title: Re: How to configure PayPal and other questions
Post by: oliviadiana on October 11, 2016, 18:01:50 PM
Hey, GJC Web Design, thank you so much for your prompt reply.

Yes, I actually experimented everything in the dropdown (Default Vendor Currency, Selected Currency in Currency Module, Romanian Lei). And I still get the same error:
"This recipient does not accept payments denominated in RON. Please contact the seller and ask him to update his payment receiving preferences to accept this currency."

I have no idea how to configure this. The guys that made the template told me it is not a problem from inside the template and that I should contact VirtueMart.
I am still trying to figure out where is the issue actually...
Title: Re: How to configure PayPal and other questions
Post by: GJC Web Design on October 11, 2016, 22:15:47 PM
I agree that it is a plugin problem  ..  I can't tell u for certain as I have never tried but the simplest would be to directly change the currency ( what currency do u want to use? Euro?) and calc. the correct amount in the Paypal plugin if it doesn't natively do this

It needs coding there in this case
Title: Re: How to configure PayPal and other questions
Post by: oliviadiana on October 12, 2016, 09:18:46 AM
Wow, GJC Web Design, you were right - it can be solved by simply adding the Euro in the 'List of Accepted Currencies' (Shop Configuration) and selecting Euro as 'Payment Currency' in the 'Payment Methods' on the right :D

Now it works perfectly, yey!
Title: Re: How to configure PayPal and other questions
Post by: phamxuanvinh2110 on November 13, 2016, 19:46:00 PM
paypal method dont work with me :(
return merchant, can't pay with paypal standard and paypal pro...
I create personal paypal and bussiness paypal, and try it, try it... but not success. help me!!!
Title: Re: How to configure PayPal and other questions
Post by: aftertaf on February 16, 2017, 21:53:14 PM
Got my first real Weborder the other day :D even though only 5% of all products are visible to public...
But for some reason when the person paid with Paypal, the order went thru twice.
Both orders were status: pending, but we got a notification from Paypal of a successful payment that corresponded to the 2nd order (1 minute interval between the2)
Got a mail telling me of the error, and I see this inside the log :

ERROR checkPaypalIps: Error with REMOTE IP ADDRESS = .

not a typo, the IP address shown is just a dot,   .

My website is hosted by a friend who is a linux guru, and site is behind firewalls and other things (not sure what he's done but it is secured...). The fix is probably a combination of change of configuration and possibly some rule changes in the firewall or on the hosting side of things, but does anyone know what I/he should do, in this case?
thank you !

Edit 1) Sorry, i posted in the wrong forum. Moved it now ...
Edit 2) Looks like issue is 'known'

2) IP address issues
When the IPN is received, we check that it comes from PayPal. Sometimes, this check fails even though the IP comes from PayPal, we are at the moment investigating this issue.
Title: Re: How to configure PayPal and other questions
Post by: mfarooqi on June 03, 2017, 13:58:05 PM
virtuemart 3x Paypal sandbox is stuck on securepayments.sandbox.paypal

I'm using Virtuemart 3.2.2 on Joomla 3.7.2 and for payment i'm using PayPal Hosted Pro.

Everything is set us under sandbox paypal account, API, Password, Signature etc. I've enabled Debug mode. When I proceed to checkout, right before moving to paypal i see all debug info.

In Paypal response section I see following info.

PayPal response:: Array (
    [WEBSITECODE]   ⇒ 

PayPal - The safer, easier way to pay online!

    [EMAILLINK]   ⇒   https://securepayments.sandbox.paypal.com/webapps/HostedSoleSolutionApp/webflow/sparta/hostedSoleSolutionProcess?hosted_button_id=HSSS-CM1jeij2UirCxlhu-RQJpxAXpWcBC6cdw.RmQqCiu30I7NQiGVNkxVnGwQqkCqm4p.Zm.w
    [HOSTEDBUTTONID]   ⇒   HSSS-CM1jeij2UirCxlhu-RQJpxAXpWcBC6cdw.RmQqCiu30I7NQiGVNkxVnGwQqkCqm4p.Zm.w
    [TIMESTAMP]   ⇒   2017-06-03T11:38:22Z
    [CORRELATIONID]   ⇒   1492a38425ae0
    [ACK]   ⇒   Success
    [VERSION]   ⇒   104.0
    [BUILD]   ⇒   25237094
    [custom]   ⇒   235f4388aa07bf3ca4481fae78cc593a
    [method]   ⇒   BMCreateButton )
which proceeds further to the link that is shown above as a value of EMAILLINK, when the next page opens, that remains blank, I have refreshed everything, cleared cookies, changed browsers and everything. But that page remains blank.

When i check in developer info in chrome, under console I see following errors.

  16:31:35.554 /favicon.ico Failed to load resource: the server responded with a status of 500 (Internal Server Error)
  16:46:45.240 hostedSoleSolutionProcess Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Can somebody please check what could be the issue.???

Thank you
Title: Re: How to configure PayPal and other questions
Post by: AH on June 03, 2017, 20:01:28 PM
What are your settings for the PayPal payment plugin?

You should see something like this in your first lines of debug file:-

2017-06-03 17:56:18 DEBUG plgVmConfirmedOrder: order number: NNNN
2017-06-03 17:56:18 MESSAGE plgVmConfirmedOrder: Amount/Currency stored 63.6 paymentcurrency 52 orderusercurrency52
2017-06-03 17:56:18 DEBUG PayPal BMCreateButton Request variables:: Array
(
    [METHOD] =&gt; BMCreateButton
    [VERSION] =&gt; 104.0


Title: Re: How to configure PayPal and other questions
Post by: mfarooqi on June 03, 2017, 22:02:31 PM
Quote from: AH on June 03, 2017, 20:01:28 PM
What are your settings for the PayPal payment plugin?

You should see something like this in your first lines of debug file:-

2017-06-03 17:56:18 DEBUG plgVmConfirmedOrder: order number: NNNN
2017-06-03 17:56:18 MESSAGE plgVmConfirmedOrder: Amount/Currency stored 63.6 paymentcurrency 52 orderusercurrency52
2017-06-03 17:56:18 DEBUG PayPal BMCreateButton Request variables:: Array
(
    [METHOD] =&gt; BMCreateButton
    [VERSION] =&gt; 104.0




No, that log file is not being produced.. but only appearing on screen.


Now i'm seeing something on the next page, but that is saying...
Error Processing Payment

Error Message"
This transaction can't be processed. Please pay with another card.


while i an't using any card...  :(



BTW.. for more details, here is the full log view appearing right before paypal URL.




plgVmConfirmedOrder:
order   number:   RPHT01722

plgVmConfirmedOrder:
Amount/Currency   stored   478.17   paymentcurrency   144   orderusercurrency144

PayPal BMCreateButton Request variables::
Array
(
        [METHOD]   ⇒   BMCreateButton
        [VERSION]   ⇒   104.0
        [USER]   ⇒   paypal-businesspro_api1.gmail.com
        [PWD]   ⇒   **MASKED**
        [SIGNATURE]   ⇒   **MASKED**
        [BUTTONTYPE]   ⇒   PAYMENT
        [BUTTONCODE]   ⇒   TOKEN
        [BUTTONIMAGEURL]   ⇒   https://www.paypal.com/en_US/i/btn/btn_paynow_SM.gif (https://www.paypal.com/en_US/i/btn/btn_paynow_SM.gif)
        [L_BUTTONVAR0]   ⇒   bn=VirtueMart_Cart_PPA
        [L_BUTTONVAR1]   ⇒   custom=d264846777f92f951685b9306217e0c2
        [L_BUTTONVAR2]   ⇒   partner=PayPal
        [L_BUTTONVAR3]   ⇒   vendor=paypal-businesspro@gmail.com
        [L_BUTTONVAR4]   ⇒   buyer_email=mfarooqi.com@gmail.com
        [L_BUTTONVAR5]   ⇒   invoice=RPHT01722
        [L_BUTTONVAR6]   ⇒   billing_first_name=Muhammad   Sajjad
        [L_BUTTONVAR7]   ⇒   billing_last_name=Farooqi
        [L_BUTTONVAR8]   ⇒   billing_address1=123   -   Marine   View   Ave,
        [L_BUTTONVAR9]   ⇒   billing_city=Belmont
        [L_BUTTONVAR10]   ⇒   billing_zip=94002
        [L_BUTTONVAR11]   ⇒   billing_state=California
        [L_BUTTONVAR12]   ⇒   billing_country=US
        [L_BUTTONVAR13]   ⇒   first_name=Muhammad   Sajjad
        [L_BUTTONVAR14]   ⇒   last_name=Farooqi
        [L_BUTTONVAR15]   ⇒   address1=519   -   Marine   View   Ave,
        [L_BUTTONVAR16]   ⇒   city=Belmont
        [L_BUTTONVAR17]   ⇒   zip=94002
        [L_BUTTONVAR18]   ⇒   state=California
        [L_BUTTONVAR19]   ⇒   country=US
        [L_BUTTONVAR20]   ⇒   subtotal=478.17
        [L_BUTTONVAR21]   ⇒   currency_code=USD
        [L_BUTTONVAR22]   ⇒   return=https://website.com/index.php?option=com_virtuemart&view=pluginresponse&task=pluginresponsereceived&paypalproduct=hosted&on=RPHT01722&pm=1&Itemid=815&lang=
        [L_BUTTONVAR23]   ⇒   notify_url=https://website.com/index.php?option=com_virtuemart&view=pluginresponse&task=pluginnotification&tmpl=component&lang=
        [L_BUTTONVAR24]   ⇒   cancel_return=https://website.com/index.php?option=com_virtuemart&view=pluginresponse&task=pluginUserPaymentCancel&paypalproduct=hosted&on=RPHT01722&pm=1&Itemid=815&lang=
        [L_BUTTONVAR25]   ⇒   paymentaction=authorization
        [L_BUTTONVAR26]   ⇒   template=templateA
        [L_BUTTONVAR27]   ⇒   showHostedThankyouPage=false
        [L_BUTTONVAR28]   ⇒   logoImage=https://website.com/images/stories/virtuemart/vendor/
)

PayPal response::
Array
(
        [WEBSITECODE]   ⇒ 


PayPal   -   The   safer,   easier   way   to   pay   online!



        [EMAILLINK]   ⇒   https://securepayments.sandbox.paypal.com/webapps/HostedSoleSolutionApp/webflow/sparta/hostedSoleSolutionProcess?hosted_button_id=HSSS-B7wOoQOjUb5DUluGrF1PBZLVCg8otePAZpMdBCX.uzneoVfpqB1ivS0uV3IjiuwVABIcMQ (https://securepayments.sandbox.paypal.com/webapps/HostedSoleSolutionApp/webflow/sparta/hostedSoleSolutionProcess?hosted_button_id=HSSS-B7wOoQOjUb5DUluGrF1PBZLVCg8otePAZpMdBCX.uzneoVfpqB1ivS0uV3IjiuwVABIcMQ)
        [HOSTEDBUTTONID]   ⇒   HSSS-B7wOoQOjUb5DUluGrF1PBZLVCg8otePAZpMdBCX.uzneoVfpqB1ivS0uV3IjiuwVABIcMQ
        [TIMESTAMP]   ⇒   2017-06-03T19:55:10Z
        [CORRELATIONID]   ⇒   79da84607c840
        [ACK]   ⇒   Success
        [VERSION]   ⇒   104.0
        [BUILD]   ⇒   25237094
        [custom]   ⇒   d264846777f92f951685b9306217e0c2
        [method]   ⇒   BMCreateButton
)
The method is in debug mode. Click here to be redirected to PayPal
The method is in debug mode.
PayPal - The safer, easier way to pay online!
Click here to be redirected to PayPal



Please note: i've changed website's actual URLs.. If you need I will share those too.
Title: Re: How to configure PayPal and other questions
Post by: AH on June 04, 2017, 11:38:55 AM
Ok - we might be getting somewhere

In your payment method configuration

Change the Template setting

You should have Template D (iframe layout)
Title: Re: How to configure PayPal and other questions
Post by: mfarooqi on June 04, 2017, 21:42:08 PM
Quote from: AH on June 04, 2017, 11:38:55 AM
Ok - we might be getting somewhere

In your payment method configuration

Change the Template setting

You should have Template D (iframe layout)

Thank you AH.. for your help, but still not working.
Now i'm seeing the same message within iframe..

Title: Re: How to configure PayPal and other questions
Post by: AH on June 04, 2017, 22:31:46 PM
You need to show me the configuration of your paypal settings

You can PM me with them - hide the secure information!
Title: Re: How to configure PayPal and other questions
Post by: GJC Web Design on June 04, 2017, 23:42:52 PM
The only PayPal Pro I tried I found that the provided test details (cards) for the sandbox were simply wrong

have u tried live? make a 1 cent transaction
Title: Re: How to configure PayPal and other questions
Post by: mfarooqi on June 05, 2017, 00:08:21 AM
Quote from: GJC Web Design on June 04, 2017, 23:42:52 PM
The only PayPal Pro I tried I found that the provided test details (cards) for the sandbox were simply wrong

have u tried live? make a 1 cent transaction

No .. I don't think our company will be supporting Credit cards with Paypal.. I want to keep the easiest way for the buyers to simply buy with their paypal accounts.

is really 1cent allowed?...

We'll be using paypal business pro!.
Would you mind if I ask you to check details in my configurations.. I can PM you if you can please!
Title: Re: How to configure PayPal and other questions
Post by: GJC Web Design on June 05, 2017, 10:48:23 AM
1 cent of course is allowed..  personally I never use the sandbox and do all testing live..
If u only want Paypal as a method why don't you just use the std method..?
What advantage is Business Pro etc?
Title: Re: How to configure PayPal and other questions
Post by: AH on June 05, 2017, 11:56:20 AM
The issue is not with credit cards AND sandbox DOES work if it is configured correctly - including IPN.

Testing with live accounts in my opinion should only be performed when you have things working with sandbox (that is its purpose!)

Using hosted pro settings via the iframe template.

However - your issue appears to be with your sandbox account - as you never get to the point where the iframe shows the options to pay by paypal or credit card.

I have posted images from my test site on localhost to a Sandbox Paypal business pro account.

If you need a card number to work with paypal - google is your friend

Test cards:-

https://www.paypalobjects.com/en_US/vhelp/paypalmanager_help/credit_card_numbers.htm (https://www.paypalobjects.com/en_US/vhelp/paypalmanager_help/credit_card_numbers.htm)

I have posted the images of a card transaction - I just performed using the Visa card number from the test cards Paypal suggested

Using PayPal std is for smaller enterprises (IMHO) jumping in an out of your site to complete a payment, in my opinion, looks very crappy.  A big part of the PayPal pro account is to have support for iframe on your site.

Hosted Iframe allows you to take payments within your pages without having to store or manage the credit card details within your pages. 

Without Iframe you would either have to jump to the PayPal pages or, enable card holders to enter their card details on your sites pages - which would significantly increase your PCI compliance obligations.


Title: Re: How to configure PayPal and other questions
Post by: mfarooqi on June 05, 2017, 12:22:00 PM
Quote from: GJC Web Design on June 05, 2017, 10:48:23 AM
1 cent of course is allowed..  personally I never use the sandbox and do all testing live..
If u only want Paypal as a method why don't you just use the std method..?
What advantage is Business Pro etc?

Advantages of business pro... I dont' know, it's what documented in virtuemart paypal configurations that account must be upgraded to "Business pro".
look here https://docs.virtuemart.net/manual/shop-menu/payment-methods/paypal-hosted-pro.html

and about std method. Payment is shown as successful, (i'm using testing buyer of course), required amount is deducted from buyer's account, but not added up to business account.(the seller), on the other side of VM, shopping cart is emptied, and customer feels, he has bought the product.

I'm always getting following email : An error with your payment method paypal on your store MAcarbon. The details are logged in the file paypal.6.log.php(whatever paypal number is)

and in that log file has following error.. :
2017-06-05 10:17:22 ERROR checkPaypalIps: Error with REMOTE IP ADDRESS = 192.88.134.6.
                        The remote address of the script posting to this notify script does not match a valid PayPal IP address

            These are the valid IP Addresses: 173.0.82.126The Order ID received was: WYJ401747

I've tried everything possible .. but still...
:(
Title: Re: How to configure PayPal and other questions
Post by: AH on June 05, 2017, 12:35:40 PM
PayPal pro account costs you x dollars per month with PayPal.

If you don't have a real PayPal business pro account  - then you cannot use the VM PayPal hosted pro solution in live.

You need to configure PayPal standard
Title: Re: How to configure PayPal and other questions
Post by: mfarooqi on June 05, 2017, 12:51:44 PM
That is right. But paypal std is not working either. .. products are added into cart, checkouts properly, paypal window appears, transaction is made, amount deducted from buyer's account.. and the buyer redirects back to vm site, the cart is emptied.. (the buyer has done perfect job)
... on the shop side.. no amount received in paypal account, no email as confirmation made, but only an error email appears..
An error with your payment method paypal on your store MAcarbon. The details are logged in the file paypal.6.log.php

which says.
2017-06-05 10:17:22 ERROR checkPaypalIps: Error with REMOTE IP ADDRESS = 192.88.134.6.
                        The remote address of the script posting to this notify script does not match a valid PayPal IP address

            These are the valid IP Addresses: 173.0.82.126The Order ID received was: WYJ401747
Title: Re: How to configure PayPal and other questions
Post by: GJC Web Design on June 05, 2017, 18:12:03 PM
2 problems here

192.88.134.6. is  a DNS server registered to    1.sucuridns.com dcid@sucuri.net

are u behind a proxy or something?  http://forum.virtuemart.net/index.php?topic=125044.0

The error should list a whole stack of possible ip addresses.. see.. plugins\vmpayment\paypal\paypal\helpers\paypal.php   function checkPaypalIps ($paypal_data) - why only one?

(Dodgy looking iframe instils more trust that going to Paypals own secure site?  Hmmmmm.....   ;)  )
Title: Re: How to configure PayPal and other questions
Post by: mfarooqi on June 05, 2017, 22:20:38 PM
Yes i'm using sucuri proxy / firewall. !
???
Title: Re: How to configure PayPal and other questions
Post by: GJC Web Design on June 06, 2017, 00:39:49 AM
read thru this: http://forum.virtuemart.net/index.php?topic=128518.msg442707#msg442707
Title: Re: How to configure PayPal and other questions
Post by: mgordon on September 20, 2017, 10:06:50 AM
I believe that this is a max limit for what you can withdraw from a customer. a kind of security for the customer.  I don't really see the point in this, but it is required for using paypal Express checkouts.


Quote from: arnold.pietersen on July 27, 2014, 16:18:09 PM
Hi

What does: Expected max amount mean when configuring the PayPal payment method. We will not know in advance what the amount will be, right?

The explanation is not that clear.

Kind Regards

ARNOLD
Title: Re: How to configure PayPal and other questions
Post by: cydesign on September 29, 2017, 11:42:10 AM
How does the new 'PayPal Credit' function work in Virtuemart?
I can't find the functionality anywhere.

We're enrolled into the PayPal credit plan and can offer customers finance, but Virtuemart (current version) seems to not give customers the option to pay in instalments.
Isn't this exactly what the update said it would do, or did I misunderstand something?
Title: Re: How to configure PayPal and other questions
Post by: mgordon on November 12, 2017, 21:56:32 PM
Why in hell isn't PayPal pro (Payment with credit card), supported in all countries where Paypal is available, and only in the UK and US ? Paypal them selves offer Pro users this in all countries. I've spoken with them about this, and their statement is that the developers of the Virtue Mart plugin have to fix this.
Title: Re: How to configure PayPal and other questions
Post by: AH on November 13, 2017, 18:36:28 PM
Maybe it is down to funding for the free paypal plugin from VM.

QuoteWhy in hell isn't PayPal pro (Payment with credit card), supported in all countries where Paypal is available, and only in the UK and US ?

The only other country is Canada.

https://www.paypal-community.com/t5/Website-Payments-Pro-Hosted-DCC/Country-restrictions/td-p/1120409 (https://www.paypal-community.com/t5/Website-Payments-Pro-Hosted-DCC/Country-restrictions/td-p/1120409)

Unless you are talking about Hosted solution.

Which is available in a few more.

Title: Re: How to configure PayPal and other questions
Post by: neborator777 on July 30, 2019, 17:22:39 PM
Hi All!
Is there a manual how to set-up Paypal for VM-3?
Title: Re: How to configure PayPal and other questions
Post by: StefanSTS on July 30, 2019, 18:50:56 PM
Yes, you find it fastest via Google: virtuemart paypal manual.

Title: Re: How to configure PayPal and other questions
Post by: neborator777 on July 31, 2019, 15:29:23 PM
Thanks...
Title: Re: How to configure PayPal and other questions
Post by: DTBMEDIAMIX1 on November 13, 2019, 16:50:19 PM
Hello,
For a week about the order status is no longer updated with Paypal payments. I had the updates 3.6.4 and now the update 3.6.6 also installed the AIO are up to date. Then nothing left. Today I have put this back. It still does not work. We have not changed the settings.

For Paypal, the setting for Instant Payment Confirmations (IPN) is disabled. What must there be for a URL? How do I get this going again? I ask for help

Joomla Version .: 3.9.8 and Virtuemart 3.6.2. I like to do the updates again.
Then it shatters me but again the language files.
Title: Re: How to configure PayPal and other questions
Post by: StefanSTS on November 13, 2019, 20:32:06 PM
It is not clear, where your problem is. You might want to explain a little more in detail.

1. VM side: As far as I heard from customers, the IPN validation works again with the latest changes in VirtueMart 3.6.8.10197.
Please check for the exact version number with 10197 at the end.


2. Paypal side: If your setting on the Paypal website in your business account is not set, just set your domain there and activate IPNs. The proper return URL will be given by the Paypal plugin itself. The URL is just a placeholder so that you can save the setting.

Regards
Stefan
Title: Re: How to configure PayPal and other questions
Post by: otletgazda on November 25, 2019, 10:01:46 AM
Hi,
The buyer will receive a 2% discount on the total price when using paypal. The Paypal plugin is set to Cost method calculation: progressiv.
When we receive the order we see that the discount is there, but the amount is wrong. Or not? But then how was the discount calculated?
Also, what is the difference between fixed and progressive methods?
Can someone help me?

Best regards,

otletgazda
Title: Re: How to configure PayPal and other questions
Post by: bettston on December 31, 2019, 18:52:36 PM
Need some help with paypal express in VM3.  I need to find a way to make sure that the shipping option is selected before they are allowed to press the express checkout option.  At present it dosent seem to be able to do this. 

Any ideas?

Thanks

Tony
Title: Re: How to configure PayPal and other questions
Post by: Studio 42 on January 01, 2020, 16:50:27 PM
in the Virtuemart config :
- Have you set auto select shipment ?
- Try to disable ajax for cart
Title: Re: How to configure PayPal and other questions
Post by: bettston on January 01, 2020, 17:07:19 PM
Hi autoselect on.y works if you if you dont want to give many options. Would be nice to force them to choose brfore express passes through

Tony
Title: Re: How to configure PayPal and other questions
Post by: Melmoi on April 02, 2020, 11:24:11 AM
Hello,
I use Joomla 3.9.16 and Virtuemart 3.6.10.
I wannt to redirect my customers to my website once their payments are succesfull in Paypal.
Do you know what is the url to return to the thank you page in virtuemart ?
Title: Re: How to configure PayPal and other questions
Post by: AH on April 02, 2020, 12:50:57 PM
It is already sent to PayPal by VirtueMart - you should not set it in PayPal's configuration panel
Title: Re: How to configure PayPal and other questions
Post by: Melmoi on April 02, 2020, 13:51:03 PM
Thank you, but I have nothing to set it in my paypal plugin, that's why I am asking...
Title: Re: How to configure PayPal and other questions
Post by: GJC Web Design on April 02, 2020, 14:22:59 PM
because the return url is hardcoded and correct in the plugin ..
Title: Re: How to configure PayPal and other questions
Post by: Melmoi on April 02, 2020, 14:36:30 PM
ok i did not know that  ;D ;D ;D
thank you !
Title: Re: How to configure PayPal and other questions
Post by: Melmoi on April 02, 2020, 14:38:27 PM
But te problem is that I need to track the orders, it works ok with the credit cards plugin.
But it seems that Paypal does not redirect automatically to the website after the payment is ok.
Do you know if there is something to set to do it automatically (instead of the button "go back to website")
Title: Re: How to configure PayPal and other questions
Post by: GJC Web Design on April 02, 2020, 15:36:07 PM
afaik its a paypal setting

https://stackoverflow.com/questions/7642895/setting-paypal-return-url-and-making-it-auto-return
Title: Re: How to configure PayPal and other questions
Post by: AH on April 03, 2020, 10:16:03 AM
FFS