Solved

Very Simple PayPal Question

Posted on 2016-09-07
3
52 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 49

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Paypal problem (e-commerce) 2 387
How does Paypal/Soundcloud work? 16 1,015
asp.net paypal 1 139
How can I get item price on the static paypal product code generated? 6 107
I'm trying, I really am. But I've seen so many wrong approaches involving date(time) boundaries I despair about my inability to explain it. I've seen quite a few recently that define a non-leap year as 364 days, or 366 days and the list goes on. …
Lotus Notes – formerly IBM Notes – is an email client application, while IBM Domino (earlier Lotus Domino) is an email server. The client possesses a set of features that are even more advanced as compared to that of Outlook. Likewise, IBM Domino is…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

937 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now