Solved

PayPal api,  database inserts/updated and atomicity

Posted on 2013-01-05
1
465 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
texting/mms service for clients 4 38
asp.net open new page without popup blocker 8 40
vb.net convert long time to mm:ss 23 23
Mouse Click After Inactivity 3 35
Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
An overview on how to enroll an hourly employee into the employee database and how to give them access into the clock in terminal.
XMind Plus helps organize all details/aspects of any project from large to small in an orderly and concise manner. If you are working on a complex project, use this micro tutorial to show you how to make a basic flow chart. The software is free when…

730 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