VirtueMart Forum

VirtueMart 1.1.x [ Old version - no longer supported ] => Payment VM 1.1 => PayPal / PayPal Pro VM 1.1 => Topic started by: Darkest Web on November 10, 2010, 17:35:35 PM

Title: Pay with Paypal without a Paypal account
Post by: Darkest Web on November 10, 2010, 17:35:35 PM
Using VM 1.1.5.  Using Paypal API New . I can't for the life of me figure out why when users are redirected to paypal they are not given the option to pay without an account.  I've checked all of my customers paypal account settings and they are set to allow unverified users.  Could someone offer me any suggestions.  Should I have my client contact Paypal and see if they have it turned off on their account or could this be something related to the VM paypal payment module?  I've searched here and havn't really found anything other than someone who said they reinstalled and everything is working now.  This however did not work for me.
Title: Re: Pay with Paypal without a Paypal account
Post by: antwaing on December 07, 2010, 20:54:54 PM
I'm trying to find the same answer.  Any look?
Title: Re: Pay with Paypal without a Paypal account
Post by: klattr1 on January 24, 2011, 06:30:17 AM
I am having the same issues too.
Title: Re: Pay with Paypal without a Paypal account
Post by: TimDavis on January 26, 2011, 02:23:16 AM
I have the same problem. This is what pay pal sent me but I do not know how or where to make the correction.(Thank you for contacting Merchant Services.
Your website is using Express Checkout as the payment method.
When you are using the Express Checkout payment method, by default the buyers can only pay by logging in to their PayPal account. To allow card payments within PayPal's page you'd need to send the variable:
SOLUTIONTYPE=Sole
in your initial SetExpressCheckout API request.
Looking in your account logs, it appears that your website is not sending this value:
Timestamp Jan. 23, 2011 15:04:31 GMT (1295795071)
SetExpressCheckoutRequest

SOLUTIONTYPE
Sole: Buyer does not need to create a PayPal account to check out. This is referred to as PayPal Account Optional.
Mark: Buyer must have a PayPal account to check out.
It may be simply a matter of changing an option in your internal website administration page, but please seek the assistance of VirtueMart on this matter.
As a workaround, you can just use a PayPal Standard module, where the credit card option only depends on your account having the "PayPal Account Optional" feature enabled.

Title: Re: Pay with Paypal without a Paypal account
Post by: Darkest Web on March 09, 2011, 17:38:39 PM
No I still have not got this working.  I've had to force the paypal api new to use express checkout to avoid the credit card errors associated with the module at this time so I'm not sure I'll be able to make it use guest checkout by using the information above.  Quite frustrating.
Title: Re: Pay with Paypal without a Paypal account
Post by: cristian607 on March 28, 2011, 18:24:16 PM
Hello,

I am looking for the same thing. From this thread I understand that this is not currently supported by VirtueMart; php code modification of VirtueMart is required to make this work, right?

Best regards,
CS.
Title: Re: Pay with Paypal without a Paypal account
Post by: zanardi on March 28, 2011, 22:53:34 PM
@cristian607:
yes i think so. Unfortunately, PayPal API module was made by an external source and we ourselves don't know all its features and issues. Of course, it being open source, any good PHP developer should be able to tell for sure.
Title: Re: Pay with Paypal without a Paypal account
Post by: cristian607 on March 28, 2011, 23:06:03 PM
But this module is the most commonly used in production as PayPal integration gateway, right? Or should I use PayPal legacy instead?

I have just installed XDebug and I'll take a look tomorrow at it more closely.

Best regards,
CS.
Title: Re: Pay with Paypal without a Paypal account
Post by: zanardi on March 29, 2011, 00:14:45 AM
Well, it is a relatively new payment method, it was introduced hurriedly (and against my will :-) ) less then 9 months ago, last July. It is surely better than Legacy from a "features" point of view, but Legacy is more stable since is older.
Anyway, we'll try to fix every issue with due time, so please feel free to report bugs and, even better, propose code fixes.
Thank you!
Title: Re: Pay with Paypal without a Paypal account
Post by: cristian607 on March 29, 2011, 08:09:19 AM
Thanks for your reply.

I think I will use the old method, which seems more stable indeed and easier to debug in case of problems.

I think that one of the major features is the possibility to integrate with PayPal Website Payments Pro (without having a PayPal redirect/UI). For the moment I won't use this.

Best regards,
CS.
Title: Re: Pay with Paypal without a Paypal account
Post by: jnovice1 on May 22, 2011, 09:37:55 AM
On VM 1.1.8 I made the following change to allow no paypal account payment:

File to modify:
\administrator\components\com_virtuemart\classes\payment\ps_paypal_api.php

Find the following code:
$resArray=hash_call("SetExpressCheckout",$nvpstr);

Add the following code right above the previous found code:
$nvpstr .= "&SOLUTIONTYPE=Sole" . "&LANDINGPAGE=Billing";
Title: Re: Pay with Paypal without a Paypal account
Post by: Dog_Guy on June 03, 2011, 10:15:47 AM
being completely new to VM and not a programmer, I would have thought that the universal payment option of paypal would have been the first thing coded right for a shopping cart application?

From this thread it appears that in 2011 that it still doesnt work properly? Or can I use whatever was loaded with VM and it will work OK?
Title: Re: Pay with Paypal without a Paypal account
Post by: fearless924 on June 07, 2011, 23:07:14 PM
Is there an answer for this?  I'm using 1.1.8 and the issue is still coming up.  Has anyone got this to work?
Title: Re: Pay with Paypal without a Paypal account
Post by: cristian607 on June 08, 2011, 07:28:25 AM
I think that for the moment it's more productive to use the old/legacy PayPal interface. At least this is what I did, because it's simpler and easier to modify/debug in case of problems.

Regards,
Cristian.
Title: Re: Pay with Paypal without a Paypal account
Post by: Dog_Guy on June 09, 2011, 07:45:27 AM
I am using VM 1.1.8 too.

I am using this because I want a shopping cart. I am not a programmer, and with little explanation between the difference between paypal modules I took other thread advice to use the API version. I got the info for the config screen but like everyone else am getting errors.

I have unpublished the pp api version, but at least that had keys etc that hook up with the pp site. SO how does legacy work? what payment type do you select in the config screens etc?  Why does the 'payment Extra info' screen just have lines of code rather than comments?

I think if this application is going to be considered seriously in the wider community, fundamentals like pp payment need to work and documentation must be simple, programming needs to be minimal. What did earlier version look like if this doesnt work?

Sorry if this seems like a rant, but it has consumed too many weeks of my time already, with no genuine answers. So many questions, and so little programming ability. I just want make a shop and to get paid, dont we all? Thank you to anyone who contributes towards getting this issue fixed!

I have registered for the sandbox but dont see a lot of step by step info in vm as to how this works.

With the std settings I have tried to check out with the legacy version. I have it TEST setting mode - is that the same as SANDBOX???

Amazingly it works up to the point that it sends me to the paypal site asking me to put in a password for the faux customer that i was logged in as on my site.

However as this is https://www.paypal.com and not the sandbox site, I am thinking that this is for real and not a test?

as they say in hangover 2. WHAT IS GOING ON ?!?

will keep searching searching searching ...

IF (and only IF) legacy works, what does the API version do better (IF it was working).
Title: Re: Pay with Paypal without a Paypal account
Post by: Dog_Guy on June 13, 2011, 13:13:19 PM
I have kindly been referred to http://forum.virtuemart.net/index.php?topic=11167.0 by another forum member.

I have changed the line of code to allow the site to go to the sandbox, but cant get any of the faux accounts to allow me to log into it to see if it allows me to buy off the site.

One slow step at a time ...
Title: Re: Pay with Paypal without a Paypal account
Post by: mnosowicz on June 29, 2011, 20:18:51 PM
After trying many other things this solution worked for me.  Thanks jnvoice1


Quote from: jnovice1 on May 22, 2011, 09:37:55 AM
On VM 1.1.8 I made the following change to allow no paypal account payment:

File to modify:
\administrator\components\com_virtuemart\classes\payment\ps_paypal_api.php

Find the following code:
$resArray=hash_call("SetExpressCheckout",$nvpstr);

Add the following code right above the previous found code:
$nvpstr .= "&SOLUTIONTYPE=Sole" . "&LANDINGPAGE=Billing";
Title: Re: Pay with Paypal without a Paypal account
Post by: LazyMan on October 04, 2011, 06:16:22 AM
Kind of frustrated in this problem, try everything in this thread told, no success. Get confirm with Paypal merchant tech support.  Paypal New API is not compatible with the paypal account optional, in order to process paypal payment without paypal account, you have to go back paypal standard method. This is open source, be patient !
Title: Re: Pay with Paypal without a Paypal account
Post by: randgleather on November 20, 2011, 19:30:15 PM
This is what worked for me in vm 1.1.8 .  It doesn't default to the direct credit card entry, but it does make it available without logging into a paypal acct.

in administrator/components/com_virutemart/classes/payment/ps_paypal_api.php

around line 1541 find the entry that reads
   $nvpstr .=
                  "&AMT=$amt"
                  ."&TAXAMT=$taxamt"
                  ."&SHIPPINGAMT=$shippingamt";

and add these two lines so that it now reads
   $nvpstr .=
                  "&AMT=$amt"
                  ."&TAXAMT=$taxamt"
                  ."&SHIPPINGAMT=$shippingamt"
                  ."&SOLUTIONTYPE=Sole"
                  ."&LANDINGPAGE=Billing";

I also had to log into paypal and change one setting

Login and click "Profile"
then scroll down and click "Website payments preferences"
Scroll down "PayPal Account Optional"
Change this to "On"
            
Title: Re: Pay with Paypal without a Paypal account
Post by: stinga on November 24, 2011, 14:04:46 PM
I use legacy and it just works, I am not sure what the new version gives over the old, so I went with what I knew...
Title: Re: Pay with Paypal without a Paypal account
Post by: mandocontrol on December 10, 2011, 00:07:46 AM
Isn't there an other module what works good i just spend 4 hours trying to get it to work but i just is not working?