Handling Transaction Between Paypal and Local Datasase
问题 What is the best practice to handle transaction between application and paypal. Consider: I'm Alice and I want send money to Bob In my DB I see that Bob has $200 and I want to send him $150. Once transaction is sent I want to update the Bob's account such that it would contain $50. Now according to PayPal API I can send Pay and receive success. However what happens if I for example send Pay it succeeds but I fail to receive a response due to network problem. So I assume that error happened