-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
freemanzhang
committed
Jan 29, 2017
1 parent
56f4c48
commit df22aa2
Showing
1 changed file
with
8 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
# payment system | ||
# Payment system | ||
|
||
## Append-only | ||
## Stability | ||
## Payment process | ||
1. Retrieve users that needs charging from SQS and corresponding info: subscription ID, charge fees. | ||
2. Retrieve user payment method from MySQL. | ||
3. Prepare payment request based on obtained info. | ||
4. Check whether the request is pending (Such payment request is sent, but not finished due to server failure or third party payment problems), if yes, ignore (avoid paying twice). | ||
5. Send request to Third Party Payment, retry or failure process ( send payment failure back to SQS ) | ||
6. If OK response from Third Party, update pending list, send confirmation back to SQS. |