Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
SQL
I want to save data from PayPal after payment success. I have table in our database contains (Amount, PaymentDate, TransactionID, UserId, IsPaymentDone, PaymentForMonth, PaymentForYear, PaymentStatus, Reason)

Please guide me how to save these information directly from PayPal if payment is successful. Thanks in advance
Posted
Updated 3-Jun-13 3:55am
v2
Comments
Ankur\m/ 3-Jun-13 9:32am    
Have you gone through their api? When they redirect to your site, they return certain values in the response. Get these values and save it to your database. Where is the problem?
Also you didn't mention which PayPal product you are using.
riteshsingh_jsr 3-Jun-13 9:36am    
I am using pay with Credit Card options only. and want to save the above data in our database like- TransactionID, IsPaymentDone, PaymentStatus, Reason

1 solution

You need to get it when your RETURNURL is hit, you need to invoke the GetExpressCheckoutDetails method and see the details of the actual transaction; verify that everything is in order.

Go through: Introduction to PayPal for C# - ASP.NET developers[^]
 
Share this answer
 
Comments
riteshsingh_jsr 3-Jun-13 9:36am    
I am using pay with Credit Card options only. and want to save the above data in our database like- TransactionID, IsPaymentDone, PaymentStatus, Reason

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900