Kat Gutierrez
Posts: 0
Joined: Sun Apr 19, 2015 1:10 am

Paypal issues

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!
Image Image Image Image Image

Bruce Stuart
Posts: 0
Joined: Fri Oct 24, 2014 4:42 am

Paypal issues

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:

Image

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:

  1. Copy the contents of the file above (open it - select all and control-c)

  2. BACKUP your project right now .

  3. 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.

  4. 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

Kat Gutierrez
Posts: 0
Joined: Sun Apr 19, 2015 1:10 am

Paypal issues

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!

Bruce Stuart
Posts: 0
Joined: Fri Oct 24, 2014 4:42 am

Paypal issues

The bad request means there is something work with the data or format of the request ... Which service is it failing in now ?

Kat Gutierrez
Posts: 0
Joined: Sun Apr 19, 2015 1:10 am

Paypal issues

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.. Image

Bruce Stuart
Posts: 0
Joined: Fri Oct 24, 2014 4:42 am

Paypal issues

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

Kat Gutierrez
Posts: 0
Joined: Sun Apr 19, 2015 1:10 am

Paypal issues

Email Sent!

Bruce Stuart
Posts: 0
Joined: Fri Oct 24, 2014 4:42 am

Paypal issues

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.

Bruce Stuart
Posts: 0
Joined: Fri Oct 24, 2014 4:42 am

Paypal issues

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 .....

Bruce Stuart
Posts: 0
Joined: Fri Oct 24, 2014 4:42 am

Paypal issues

Tom, did you get your payPal processes to work?

Return to “Issues”