Adding related tables to custom Users table
This issue is to be performed after milestone Users blog and profile is finished.
Description
For this, you will need to create (if not already created) an app named as 'payments'. You will create a file named utils.py inside the app folder and write your driver code for Stripe in there.
{
"card_id": int,
"paid_to": int (user's id),
"amount": int (amount)
}
We also need a table where we can track transactions. Therefore you also need to create a table named as "PaymentHistory" inside payments.models file. This new table will contain the following fields:
transfered_from (FK user id)
transfered_to (FK user id)
datetime_created (date when transaction record was created)
Scope
Adding related tables to custom Users table This issue is to be performed after milestone Users blog and profile is finished.
Description
For this, you will need to create (if not already created) an app named as 'payments'. You will create a file named
utils.py
inside the app folder and write your driver code for Stripe in there.You can refer to Stripe Documentation to write driver code for stripe.
We need the following APIs:
We also need a table where we can track transactions. Therefore you also need to create a table named as "PaymentHistory" inside
payments.models
file. This new table will contain the following fields: