Paypal's refund operation on JAVA, JSF 1.2

Posted on 2011-04-25
Last Modified: 2012-05-11
Greetings to everyone

Does someone has an example on how to implement the Paypal's partial refund operation on JAVA, specifically on Visual Web JSF 1.2 implemented on Netbeans 6.7.1

Rigth now I'm able to take payments from customers with express checkout, but I need to implement a way to make refunds automatically if the product cannot be delivered, the system registers if an product cannot be given, but because the payment has been done, is necessary to make a refund.

I would appreciate examples or tutorials on the subject, preferably with Http request. I already have read the official PayPal Documentation with no use, please don't refer to that.

Thank you in advance
Question by:Risk_TI
    LVL 26

    Expert Comment

    If you want to get the refund info to process automatically, then I think you'll have to have an IPN setup with Paypal, and check the data Paypal sends you.  See the doc for the explanation of how Paypal identifies each type of event:

    Author Comment

    thank you Mr coffee, but I was thinking more on an example on how to issue a refund from java, this document surely will help when handling the response, but have you around some example on the mechanism for issuing and actual refund from code?

    Thanks in advance
    LVL 26

    Accepted Solution

    Are you actually using Paypal, so you want the sample code from their site to use their API?  In that case, you can get examples in Java from this page:

    If you have not already signed up, you'll want a Paypal developer account so that you can create a test area to try all these things out without having to do real transactions with your real credit card or Paypal account.

    Author Closing Comment

    Thank you , there it is what I was looking for, maybe looking at Userguides at first wasn't the best idea

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    The aim of this article is to help you solve the error "Cannot insert the value NULL into column 'ShortDescription', table 'albert_store.dbo.Nop_Product'; column does not allow nulls. UPDATE fails." problem and allow you to continue updating your No…
    I recently read an article which suggested that 60% of businesses in the U.S. that process credit card details online in order to accept payment for goods or services were not Payment Card Industry security standards (PCI) compliant. This statement …
    Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    779 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

    14 Experts available now in Live!

    Get 1:1 Help Now