I am starting to develop a fundraising system, but I have one or two unclear things. Assume the payment gateways Visa, Mastercard, etc. are integrated in my website.
When a visitor wants to donate x mount of money to any campaign (there will be many different types of campaigns), the information will be saved in my table:
donateTable columns:
- id: donatorId: paymentdate, paymentamount, campainID,status
When a visitor pays, this information should be saved in my table, but when a user wants to pay the final step, they will go to a third party payment gateway page. When the user reaches there, the user could pay or could change their mind.
If a user pays, my table should be updated, the balance of the campaign should be updated. So how does a fundraising systems work? Does a fundraising system use a single account with different reference code? I need explanation please.