?
Solved

Very Simple PayPal Question

Posted on 2016-09-07
3
Medium Priority
?
123 Views
Last Modified: 2016-09-07
When you are using a simple "Buy Now" Paypal button & you specify a "return" page, how can you tell the result of the transaction? (Good or Bad).

As best I can tell, from testing, there is no "bad" because PayPal will NEVER let you finish unless you put in valid info. You are stuck until you x out that page. Seems VERY unprofessional.

Is there a parameter (hidden form field) that let's you allow Cancel? So the customer is not left in limbo?

Thanks
0
Comment
Question by:Richard Korts
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 53

Expert Comment

by:Ryan Chong
ID: 41788903
according to PayPal developer documentation:

The state of the payment, authorization, or order transaction. The value is:

    created. The transaction was successfully created.
    approved. The buyer approved the transaction.
    failed. The transaction request failed.
https://developer.paypal.com/docs/api/payments/
look for the Response section.
0
 

Author Comment

by:Richard Korts
ID: 41789002
Ryan Chong

How is that passed back to the web site?
0
 
LVL 11

Accepted Solution

by:
Andrew Angell earned 2000 total points
ID: 41789006
The info Ryan Chong provided is related to the REST API which is not going to be the same as what you're doing with Payments Standard.

If the user decides to "x out" that would be equivalent to canceling.  There is also a link to "Cancel and return to merchant site" on the login screen.  Either way, they would be sent back to your cancel URL.

If they complete the transaction they'll be sent to your return URL.  As I mentioned in your other question, you can use PDT (Payment Data Transfer) to return transaction details back to this URL so that you can build logic to display what you want.

PDT is very similar to IPN except that PDT sends data back to your return URL and IPN takes place in a separate listener URL that is not part of your checkout at all.

PayPal provides an IPN and PDT variables documentation that outlines all the data you could potentially get back.

Included in that you'll find the following parameters which are typically used to build your return URL however you need to.

- payment_status
- auth_status
- payer_status
- address_status
- profile_status
- initial_payment_status

Not every parameter will come back in every transaction.  It depends on the transaction type.  All of that is covered in the doc I linked to.
0

Featured Post

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hey fellow admins! This time, I have a little fairy tale for you. As many tales do, it starts boring and then gets pretty gory. I hope you like it. TL;DR: It is about an important security matter, you should read it if you run or administer Windows …
If you're a modern-day technology professional, you may be wondering if certifications are really necessary. They are. Here's why.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question