Solved

PayPal api,  database inserts/updated and atomicity

Posted on 2013-01-05
1
460 Views
Last Modified: 2016-03-24
I am designing a subscription-based website and am using the PayflowNETAPI API for PayPal, c#(dot.net). Here is my issue, there are several times when I have to perform database inserts and updates after I create or update a recurring billing profile. I know that I can run database inserts and updates within a transaction scope and rollbacks will be performed provided TransactionScope.Complete is never reached. The problem is how do I rollback the PayPal transaction so everything either completes or fails including the PayPal transaction?  I am using the service layer and repository patterns.  Any help would be greatly appreciated.
0
Comment
Question by:rawcoder
1 Comment
 
LVL 18

Accepted Solution

by:
Gary Davis earned 500 total points
ID: 38749143
The PayPal transaction is not part of your database transaction so will not be automatically rolled back. If a rollback occurs, you will have to do a reverse transaction to PayPal like voiding an auth, refunding a capture, etc.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Today companies are subjected to more-and-more data, and it won't stop any time soon.  But there are obvious opportunities for reducing data, particularly data duplicated among companies.
If your app took Google’s lash recently, here are the 5 most likely reasons.
The viewer will learn how to create multiple layers to apply various filters and how to delete areas from each layer’s filter.
This video will demonstrate how to find the puppet warp tool from the edit menu and where to put the points to edit.

863 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

23 Experts available now in Live!

Get 1:1 Help Now