You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How should we deal with payment notifications coming from the payment gateway that do not match any transaction in our database?
There are two possible cases to consider:
The transaction was initiated from our app, but the app failed/or db crashed before a transaction record was persisted in the database (we make the payment request to the gateway before storing the transaction record). In this case the payment gateway should have some metadata about the transaction, e.g. we store the ID of the user who initiated the transaction in metadata.fromUser field when make a request to Africa's Talking. We can use this information to create a transaction record with all the necessary details (basically doing an upsert when updating the transaction record)
The payment was made to our account without going initiating through the app. We should find out from the provider whether this is possible and decide how to deal with it, e.g. do we create a concept of "anonymous" transactions? Do we attempt to match the transaction's phone number with a user in our database? Do we create a new user account on the fly if the source phone number does not exist? etc.
The text was updated successfully, but these errors were encountered:
How should we deal with payment notifications coming from the payment gateway that do not match any transaction in our database?
There are two possible cases to consider:
The transaction was initiated from our app, but the app failed/or db crashed before a transaction record was persisted in the database (we make the payment request to the gateway before storing the transaction record). In this case the payment gateway should have some metadata about the transaction, e.g. we store the ID of the user who initiated the transaction in
metadata.fromUser
field when make a request to Africa's Talking. We can use this information to create a transaction record with all the necessary details (basically doing an upsert when updating the transaction record)The payment was made to our account without going initiating through the app. We should find out from the provider whether this is possible and decide how to deal with it, e.g. do we create a concept of "anonymous" transactions? Do we attempt to match the transaction's phone number with a user in our database? Do we create a new user account on the fly if the source phone number does not exist? etc.
The text was updated successfully, but these errors were encountered: