News:

Support the VirtueMart project and become a member

Main Menu

PayPal Handling in VM 1.1.5

Started by mwf, July 28, 2010, 15:56:35 PM

Previous topic - Next topic

mwf

For VM Dev Team,

I'm testing the new PayPal API and would like some clarification on how it should work.

Settings:
Payment Method Type: HTML Form
Enable Express Checkout: Yes
Enable Direct Payments: No
Accept Only Verified: No
Sandbox: Yes


Down-loadable product
Account Creation: No

Only One Payment Method: PayPal API

The Express Checkout button is displayed in the cart and works - no problem there. However, if you click on "checkout" link, enter user detail, and continue to confirmation page there seems to be two issues; (1) the Express Checkout button does not display, and (2) the doDirectPayment API is used.

Clicking on "Confirm" throws credit card data errors. In this case I only want to use Express Checkout (or Express Checkout and Standard Payments).

I'm wondering if the intended use of the new module is that direct payment must be used for the normal checkout and Express Checkout is only available in the cart. This applies only when there is one payment method. If you enable PayPal Standard payments then Express Checkout option is available at final confirmation.

Thank you,

Micah
Professional Joomla Development and Support
http://www.exps.ca

pmason

I am having the same problem.  This is a screenshot of the errors I see after selecting confirm order. 



I would like to use express checkout only.

aravot

The new PayPal Pro payment module needs some tweaks, unfortunately the team is short handed in terms of beta testers hence the errors weren't fund until VM 1.1.5 was released hopefully with the help of community we will be able to fix them for VM 1.1.6

To be able to use Credit card with PayPal Pro, payment method type should be 'Use Payment Processor'.

There are few other issues that we will try to fix, example of one 'Enable/Disabling of Direct Payment has no effect.

mwf

aravot,

Thanks for the reply - I understand.
In the mean time, until 1.1.6 comes out, I'm thinking about how make a mod to have Express and doDirectPayment work independently. Has the dev team thought about making two payment methods; one for Express and one for doDriectPayments? I see this a being the easiest way to have either payment option working with the standard VM payment options selection.
Professional Joomla Development and Support
http://www.exps.ca

Mykl

Same problem: Trying to make real payments using the new PayPal API in VM 1.1.5 returned a number of errors, regarding credit-card data (which I don't use) and an expected array in the PP API (for which I couldn't find the source). I also understand the situation of the VM developers, but regretted my silly assumption that a definitive release, no beta or RC, would work w/o major glitches... Since finding a solution to the problem is way beyond my programming abilites, two questions:

- Has anybody used the new PP API successfully? I've applied so many patches to VM since I started three months ago, that it may be some kind of compatibility issue. It may also be due to my attempt to streamline checkout by reducing it to a single step (works otherwise).

- Has anybody found a solution to just using the new PP API express checkout w/o PP Pro? All the PP express button in the cart did for me was to go to checkout, just like when you click on the usual checkout button.

The point of the express checkout, I thought, was for users to avoid having to register and enter their address, the address being returned to the shop from PP after redirect. Regardless of the settings I tried, I was never able to confirm an order w/o entering an address during checkout. VM consistently prevented that, even with registration turned off.

In the meantime I figured I'd just go back to old PP method, but couldn't get it to work anymore... Since I back up all my stuff, I rolled back to VM 1.1.4. "stable" and am back to square one, but PP works again at least. I'm not saying that Vm 1.1.5 doesn't work, just that it didn't for me after trying to implement the PP API.

Waiting for 1.1.6 or other unexpected good news,
Mike

mwf

Mike,

I too scrapped the idea of using the new PP API for reasons listed, but do have 1.1.5 running with PayPal Standard Payments. I have my own code for this though. Shoot me an email if you want a copy.

Micah
Professional Joomla Development and Support
http://www.exps.ca

evanw

Quote from: mwf on August 27, 2010, 15:18:47 PM
Mike,

I too scrapped the idea of using the new PP API for reasons listed, but do have 1.1.5 running with PayPal Standard Payments. I have my own code for this though. Shoot me an email if you want a copy.

Micah

Hey Micah,

If you got it...I would love to see it. I have been battling a week now with the API...and everything works perfect through the checkout, and in the PP Sandbox up until the very last step of hitting the "Pay" button. Then I go straight to a 400 error - Bad Request Flag.

Will need to go back to the regular PP route...but I have never been able to get it to work either...

//Evan
Regards,
Evan

evanw

Skip that...now have it working...payments and all, except the download links for downloadable products.

Thanks the same...got me thinking & working from another angle...
Regards,
Evan

mwf

Evan,

That's great! Are you using the new API on it's own?
Are you using Express Checkout or direct payments, or both?

Micah

Professional Joomla Development and Support
http://www.exps.ca

Mykl

Hey Evan,

Good going. I'm still waging the battle. Can you let us know how you did it?

Thanks and cheers,
Mike

evanw

Well, I haven't got the API going all the way through yet...just the old way...but still the downloads thing is unclear. Links back are incorrect. But I did stumble across something today re: code in the back-end.

I'll do the test on it tomorrow and let you know if its running clean.

Still waiting for that last step for the API version. I know a pro on Germany that may shed some light on it, maybe not. I am sure with his hourly rate, he woul dbe glad to.

//E
Regards,
Evan

evanw

Been continuing to battle with both sides of this...there must be something I am missing, I keep getting the error code. 404 Error - Not Found...when I hit the confirm button in the regular PayPal method.

and I think I know what it might be BUT...need some guidance.

In the user manual it says "There's a file in /administrator/ components/com_virtuemart/ which is called notify.php. You will need to enter the appropriate URL (web address) for the script file in PayPal's control panel..."

NOW...which line am I changing in the script? And am I changing it to my site store URL? Or the address that shows up beside the Test Mode: button in the config page (the Notify Script File)

How you can help...I am running on empty with this now. I am releasing a cd in a couple of weeks, and have other things to chew on...this has put me back some time.

OTHERWISE - re: the API conversation...seems that I can make transactions here. Not sure how, but I made one "live"...got the download (with a minor script error on the VM side that I need to fix) via the email notification. Payment processed...and even refunds nicely. Not sure exactly how I am doing it, but when I find out, I'll let you know.

//Evan
Regards,
Evan

radicalfightershop

Hi im also having issues with paypal(apinew) as well, not with payments pro though, just the standard paypal payment. Everytime a payment is made I get an Invalid transaction error email comming out of sandbox, its not even activated. Really at a loss, its quite frustrating.
To save filling up the thread with the error its here :-
http://forum.virtuemart.net/index.php?topic=76179.msg253072#msg253072