Page 5 of 7
Paypal issues
Posted: Mon Apr 20, 2015 5:12 am
by Kat Gutierrez
So I currently have ** return "USD"; ** for my JS for the currency like you indicated in your slides.
The reason it looks like the authorization code is on seperate line is because of the dev. tool window size.
My total is a numeric value...it is whatever dollar amount a user selects (15.00, 25.00, 50.00).
Here are the images...I am sorry that this has taken up your time!
Paypal issues
Posted: Mon Apr 20, 2015 6:54 am
by Bruce Stuart
Kat - in looking at your response tab - for the payPalPayment - your first UI above - it does not look like mine.
When I compare your PayPalPayMent - response with my response - here's what it looks like:
Your's looks vastly different than mine. (mine on left - yours on right)....
Your response should have been built from here:
http://the-software-studio.com/javasc...
If you look at that file - it matches the format of my response on the left.
What I believe you will need to do is:
Copy the contents of the file above (open it - select all and control-c)
BACKUP your project right now .
Paste the contents of the file above - into the response - when you have the TEST tab highlighted on your PayPalPayment tab. BEFORE you click import as response - understand that if-when you do this - any of the mappings you established for this service - as well as the Javascript you wrote for this service - will be lost. Save anything you'd like to save from the UI - data - where you are executing this service.
When you understand or have a plan for rebuilding this service from the link above - then click 'Import as Response' - please compare the data on the response tab now -with my screen - and the contents of the link you just imported...
http://the-software-studio.com/javasc...
This should help....
Best,
Bruce
Paypal issues
Posted: Tue Apr 21, 2015 7:26 am
by Kat Gutierrez
Well everything works... it stores all my variables and runs all the way up to the "Value of Authorization token is:" and then I get a 400 bad request error.
Thanks for the help anyways! You were great!
Paypal issues
Posted: Tue Apr 21, 2015 3:03 pm
by Bruce Stuart
The bad request means there is something work with the data or format of the request ... Which service is it failing in now ?
Paypal issues
Posted: Tue Apr 21, 2015 5:00 pm
by Kat Gutierrez
It's occuring in the "service_paypal_payment" in the success. In my console.log its running all the mapping in the before event. but not executing the success..
Paypal issues
Posted: Tue Apr 21, 2015 9:33 pm
by Bruce Stuart
What are the details of the bad request ? In the log above it shows error 400 ... Bad request ... Click the link to retrieve the request sent to paypal . Alternatively ... Email me I think we could solve this much more quickly another way ... a href="mailto:Jbrucestuart@comcast.net" rel="nofollow"Jbrucestuart@comcast.net/a
Paypal issues
Posted: Tue Apr 21, 2015 9:43 pm
by Kat Gutierrez
Paypal issues
Posted: Tue Apr 21, 2015 9:53 pm
by Bruce Stuart
see response... A quick look at your response says that the wrong values are making it into the request - your return_url is invalud , the total field has no value, and the cancel-Url is also invalid.
Paypal issues
Posted: Tue Apr 21, 2015 10:48 pm
by Bruce Stuart
for anyone that follows along on this payPal thread - from this point forward - Kat and I can't stress enough, if you get a malformed request error from PayPal - check the data types you are passing to PayPal (ensure that they are exactly as they should be from the samples above) - and ensure that your spellings and capitalization's of the request parameters - are exactly as specified in the screen prints from the original tutorial screens above.
Happy PayPal'ing .....
Paypal issues
Posted: Tue Apr 21, 2015 10:53 pm
by Bruce Stuart
Tom, did you get your payPal processes to work?