?
Solved

Paypal's refund operation on JAVA, JSF 1.2

Posted on 2011-04-25
4
Medium Priority
?
1,295 Views
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
0
Comment
Question by:Risk_TI
  • 2
  • 2
4 Comments
 
LVL 27

Expert Comment

by:mrcoffee365
ID: 35467447
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:
https://merchant.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_IPNandPDTVariables
0
 

Author Comment

by:Risk_TI
ID: 35468007
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
0
 
LVL 27

Accepted Solution

by:
mrcoffee365 earned 300 total points
ID: 35469156
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:
https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/library_code

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.
0
 

Author Closing Comment

by:Risk_TI
ID: 35470370
Thank you , there it is what I was looking for, maybe looking at Userguides at first wasn't the best idea
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

E-commerce is quite a gambling world, and you should never entrust your business to a lucky chance. In order to outrun your competitors in a race to attract as many customers as possible, you need to have a well thought-out strategy under your belt.…
WooCommerce is becoming the most powerful e-commerce plugin for Wordpress. And why not. The platform comprises of numerous core plugins that may come in handy, powerful options to make your website development task much easier.
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:
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
Suggested Courses
Course of the Month14 days, 19 hours left to enroll

839 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