Solved

this is a theorical question dealing with combining ebay api and paypal ipn

Posted on 2011-03-16
9
401 Views
Last Modified: 2013-11-10
this is a theorical question dealing with combining ebay api and paypal ipn


selling items on ebay and getting paypal ipn

If I sell to a customer more than once I can not tell which order to add the paypal payment to

I can choose to add paypal payment to ebay order that is the oldest (but that order may be months old)

I can choose to add paypal payment to ebay order that is the newest (but that order may have a customer adding paypal for shipping on an older order)
0
Comment
Question by:rgb192
  • 4
9 Comments
 
LVL 108

Accepted Solution

by:
Ray Paseur earned 500 total points
ID: 35159172
Got a neglected question alert on this.  Not sure this is 100% on target but I will try to answer with a design pattern that I have used for similar things in the past.

You can generate some kind of unique id, and make it part of the product order identification.  Let's say you sell baseball bats and you have maybe 20 SKUs in your inventory.  In the order for baseball bat numbered  BB-32-19 you might add the unique id so that the product number or name looked something like BB-32-19-X423.  In this scheme, the X423 is a unique key to a row in a data base table.  In the row, you have information about who ordered and what they ordered.

Does that make sense for your needs?
0
 

Author Comment

by:rgb192
ID: 35201534
but if another paypal payment ip arrives it doesnt have the 'X423' attached to it

paypal ipn will only have customer name, customer address, customer phone number, customeremail, ebayitem number, ebayusername


so customer could have purchased one bat and then another bat 2 weeks later and system will not know which bat to attach the new paypal payment

or customer could have sent additional paypal to ship first bat
0
 

Author Comment

by:rgb192
ID: 35298495
but if another paypal payment ip arrives it doesnt have the 'X423' attached to it

paypal ipn will only have customer name, customer address, customer phone number, customeremail, ebayitem number, ebayusername


so customer could have purchased one bat and then another bat 2 weeks later and system will not know which bat to attach the new paypal payment

or customer could have sent additional paypal to ship first bat
0
 

Author Closing Comment

by:rgb192
ID: 35341332
Ray answered the question.  Thanks
0
 

Author Closing Comment

by:rgb192
ID: 35341333
Ray answered the question.  Thanks
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

Learn by example how to specify CSS selectors for Selenium WebDriver test automation software.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The purpose of this video is to demonstrate how to integrate Mailchimp with Facebook. This will be demonstrated using a Windows 8 PC. Mailchimp and Facebook will be used. Log into your Mailchimp account. : Click on your name. Go to Account Setti…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

910 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

19 Experts available now in Live!

Get 1:1 Help Now