• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 479
  • Last Modified:

PayPal api, database inserts/updated and atomicity

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
rawcoder
Asked:
rawcoder
1 Solution
 
Gary DavisDir Internet SvcsCommented:
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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now