Originally posted by Murat Balkan:
Hi all,
Before saving the itinerary as a paid one, credit card must be authorised. Suppose whole flow is managed by a SLSB.
First step, authorization of the card succeeds and it goes to second step which is, updating the model. But suppose, at that time,the db crashes...
In this type of scenario , what transaction type should I use? Also how can I rollback the TransMaster CC payment?
Thanks a lot,
Murat
You can assume that :
1) Transmaster api provides 'void transaction' support. i.e. you swipe the card and paid, but you cant update the iternary. In which case you will void the transaction by calling another method on transmaster.
2)
You should assume that DB update and Transmaster verification is being done in a single transaction (atomic). So if either fails, you will rollback. For card related api it means that a void transaction call is supported.
In the real world app .. that is how it is done.