Solved

Very Simple PayPal Question

Posted on 2016-09-07
3
38 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
Comment Utility
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
Comment Utility
Ryan Chong

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

Accepted Solution

by:
Andrew Angell earned 500 total points
Comment Utility
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

HOW TO: Upload an ISO image to a VMware datastore for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere Host Client, and checking its MD5 checksum signature is correct.  It's a good idea to compare checksums, because many installat…
In this step by step tutorial with screenshots, we will show you HOW TO: Enable SSH Remote Access on a VMware vSphere Hypervisor 6.5 (ESXi 6.5). This is important if you need to enable SSH remote access for additional troubleshooting of the ESXi hos…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

772 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

10 Experts available now in Live!

Get 1:1 Help Now