Solved

Very Simple PayPal Question

Posted on 2016-09-07
3
67 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
3 Comments
 
LVL 50

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

In this article we will learn how to backup a VMware farm using Nakivo Backup & Replication. In this tutorial we will install the software on a Windows 2012 R2 Server.
Having trouble getting your hands on Dynamics 365 Field Service or Project Service trial? Worry No More!!!
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

773 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