ghidinelli / cfpayment

ColdFusion payment processing library makes plumbing e-commerce apps easy. Charging credit cards has never been easier. Inspired by Ruby's ActiveMerchant.
Other
90 stars 54 forks source link

invalid ammount #1

Closed ingjohnavila closed 9 years ago

ingjohnavila commented 11 years ago

I am using the CFC "payflowGateway.cfc" and when I change the "partner" - "MerchantAccount" - "userName" and "userName" the answer is "INVALID AMOUNT"

I don't understand why it shows this message. I have tried with differents values but the answer always is the same.

Can someone help me please ?

ghidinelli commented 11 years ago

Can you show the complete code from gateway instatntiation up to where you call the payflow charge (or equivalent) method and then the complete raw response from Paypal? Please mask out any sensitive information like usernames/passwords.

I'll duplicate here in a unit test and then we'll resolve.

ingjohnavila commented 11 years ago

I am using the code with example and I only modified the files “index.cfm” and “_process.cfm” in the folder “cfpayment\docs\examples\simplecheckout”

The main changes were in “_process.cfm”, those are:

Line 26 <cfset authResponse=gw.purchase(money, creditCard, options)> Line 106

And when I used the next information in the submit “index.cfm”

I hope you can help with this information,

Kindest regards,

John Jairo Avila Espinel Software Engineering.

This e-mail and any files transmitted with it are strictly confidential. Use or disclosure of this e-mail or any such files by anyone other than a designated addressee is unauthorized. If you are not an intended recipient, please notify the sender by e-mail and delete this e-mail without making a copy.

From: Brian [mailto:notifications@github.com] Sent: Wednesday, April 10, 2013 7:53 PM To: ghidinelli/cfpayment Cc: ingjohnavila Subject: Re: [cfpayment] invalid ammount (#1)

Can you show the complete code from gateway instatntiation up to where you call the payflow charge (or equivalent) method and then the complete raw response from Paypal? Please mask out any sensitive information like usernames/passwords.

I'll duplicate here in a unit test and then we'll resolve.

— Reply to this email directly or view it on GitHub https://github.com/ghidinelli/cfpayment/issues/1#issuecomment-16211467 .Imagen quitada por el remitente.

ingjohnavila commented 11 years ago

I'm sorry. I am waiting a response yet, please !!

ghidinelli commented 11 years ago

Sorry - was out of town and very busy, will take a look shortly.

ghidinelli commented 11 years ago

Thanks for your patience - I've duplicated the issue here and have identified where part of the problem is. Payflow requires form parameters to not be encoded and the gateway relies on something in process() that doesn't exist. I've gotten so far as getting a new error back, "Invalid Vendor". I'm going to patch this shortly and ask that you try it again with your credentials and let me know if it passes.

ghidinelli commented 11 years ago

ingjohnavila - if you can grab the latest from Git, the updates are in there. Let me know what you get now.

ingjohnavila commented 11 years ago

I am sorry, I was working in other topic and only yesterday I can check the new code but this is showing the de new message: "User authentication failed"

When I active the Debugging Information I found this message in the next process

CFC[ D:\www.site.com\cfpayment\api\model\response.cfc | setRESULT(RESULT = RESULT=1&RESPMSG=User authentication failed)

CFC[ D:\www.site.com\cfpayment\api\model\response.cfc | setMessage(User authentication failed) ] from D:\www.site.com\cfpayment\api\model\response.cfc

I hope you can help me because I didn't understand the mistake if the params are matchs.

ghidinelli commented 11 years ago

It appears that some portion of your authentication credentials are invalid. Have you confirmed any other way that what you have works? Could you be trying production credentials against the test gateway or vice versa? Remember that the gateway defaults to test mode.

ingjohnavila commented 11 years ago

We only use an user and with this we do transations in mode test or live.For that reason I guest this is not error.

This is the code in ASP and I check the same data in ColdFusion

parmList = parmList + "&PWD=" & Trim(Password) parmList = parmList + "&USER=" & Trim(UserID) parmList = parmList + "&VENDOR=" & Trim(VendorID) parmList = parmList + "&PARTNER=" & Trim(PartnerID)

And in the documentation in Paypal "payflowgateway_guide.pdf" I find the error relasion with this error exactly.

RESULT=1 Definition=User authentication failed How to test using Payflow Gateway=Use an invalid PWD

ingjohnavila commented 11 years ago

Maybe the PWD sent is encoded and Paypal does not wait this data with these feature. I am sure the PWD is correct for that the message is not appropiate.

ghidinelli commented 11 years ago

Can you send me your credentials via email? Perhaps temporarily change the password for me to do some debugging with? I need to have a valid vendor / credentials so I can get this to work for you. You can send to brian at vfive dot com.

ingjohnavila commented 11 years ago

Brian, I have the credentials but I do not know your email to send them, please

send me a email to continue with the process with the error.

Thanks

ghidinelli commented 11 years ago

Send it to brian at vfive dot com

ghidinelli commented 11 years ago

It appears there may be some confusion as to what flavor of the Paypal gateway you are using. I'm unable to sign in to the Paypal manager interface using the credentials you sent. Can you sign in here? https://manager.paypal.com/logout.do

The gateway author, @penhorwood, has written a unit test against the current gateway using his credentials and confirmed that they work as well as with the simplecheckout app. We're starting to think you may be using a slightly different product?

ingjohnavila commented 11 years ago

Hi Brian:

With these credentials you only can do test, you do not do login in the manager in paypal. Although I check in Paypal and I did not find any test with the user.

But please confirm me, where do I find the last version complete to download and use these information, how https://github.com/penhorwood @penhorwood does.

And I sent the confirmation later.

Kindest regards,

John Jairo Avila Espinel

This e-mail and any files transmitted with it are strictly confidential. Use or disclosure of this e-mail or any such files by anyone other than a designated addressee is unauthorized. If you are not an intended recipient, please notify the sender by e-mail and delete this e-mail without making a copy.

From: Brian [mailto:notifications@github.com] Sent: Monday, June 24, 2013 11:26 PM To: ghidinelli/cfpayment Cc: ingjohnavila Subject: Re: [cfpayment] invalid ammount (#1)

It appears there may be some confusion as to what flavor of the Paypal gateway you are using. I'm unable to sign in to the Paypal manager interface using the credentials you sent. Can you sign in here? https://manager.paypal.com/logout.do

The gateway author, @penhorwood https://github.com/penhorwood , has written a unit test against the current gateway using his credentials and confirmed that they work as well as with the simplecheckout app. We're starting to think you may be using a slightly different product?

— Reply to this email directly or view it on GitHub https://github.com/ghidinelli/cfpayment/issues/1#issuecomment-19952483 .Imagen quitada por el remitente.

ghidinelli commented 11 years ago

John - Andrew is able to successfully use the gateway with his credentials. He added a unit test to the payFlow gateway that you can pull down and test. It would appear that it may be related to your security settings. Do you have IP addresses added, permissions set, etc?

Is there another way to verify that the account is working to isolate the issue to cfpayment?

ghidinelli commented 11 years ago

John - were you able to diagnose the problem here? If so, let me know the solution and we can close the issue.

ghidinelli commented 9 years ago

Assuming working after no update since Oct 13.