#Chhay Toch-client-secret-storage
1 messages · Page 1 of 1 (latest)
Great! So we don't need to Create Subscription each times when the user come back to carry on their payment.
And one more thing,
Currently, I am store the PeriodStart & PeriodEnd to handle the expiration of the user accessible.
Should be do the Data Encryption for PeriodStart & PeriodEnd?
So we don't need to Create Subscription each times when the user come back to carry on their payment
You don't need to nope!
Should be do the Data Encryption for PeriodStart & PeriodEnd?
Not sure I understand the Q? Encrypt where
Currently, I am store the PeriodStart & PeriodEnd in the Database
UserSubscription Table
id
userId
periodStart
periodEnd
priceId
productId
subscriptionId
invoiceId
now, the field periodStart & periodEnd store as the Number.
I guess that's entirely up to your integration whether you encrypt them or not!
so if s.o access DB and change that field, it will be the problems.
I would like to hear some advice from you, boss!
I guess it depends on how often you plan to read/write from those DB columns
Ok boss