ramya
ramya

Reputation: 2760

PayPal API in C# Windows Application

I am implementing windows form application in C# which uses Paypal API to get transaction details from Paypal. I am getting it in every time interval for which i have implemented Windows Service, its successfully getting transaction details from Paypal and updating local database. Is there any way i can get only New transaction details instead of getting all transaction? I know that we can apply filter at database while inserting by transaction no., and retrieve transaction through start and end date, but every time retrieving large transaction i don't think is a good solution.

Upvotes: 0

Views: 736

Answers (1)

PP_MTS_Matt
PP_MTS_Matt

Reputation: 1394

Is there any reason the database can't be updated before the request is sent to PayPal? The typical process I see is:

  • Log the form data in the Database.
  • Submit the request to PayPal
  • Update the record based on the approval or denial from PayPal

This way all payments will be updated real-time and there won't be any need to get all transaction details within a specific time frame.

Upvotes: 1

Related Questions