philan.net icon indicating copy to clipboard operation
philan.net copied to clipboard

Add subscription type like monthly?

Open azu opened this issue 4 years ago • 9 comments

How to record monthly donation?

azu avatar Feb 28 '21 14:02 azu

Google App Scripts Integration?

Images

  • User who use subscription type can install helper GAS script
  • GAS script use ClockTriggerBuilder and create new record from subscription item.

Require

  • Implement GAS script
  • Update scope https://github.com/azu/philan.net/blob/5aea1088f1d529108d081d64d4828ead6e76d790/web/pages/api/auth/index.ts#L23-L27 and privacy policy

azu avatar Mar 01 '21 02:03 azu

Should subscription items be another sheet? For example, the "Subscription" sheet.

I concern about how to stop subscriptions.

azu avatar Mar 10 '21 19:03 azu

image

What "Interval" format is suitable? https://docs.google.com/spreadsheets/d/152vYcYuz7JGcSWPwmzOQ-p2yvyJJxYOu3CvxFYbJu3w/edit?usp=sharing

azu avatar Mar 10 '21 23:03 azu

It would be great to support for recurring donations. But meantime, it would be nice adding a small feature to duplicate existing records.

If so, we can easily add our recurring donations by simply duplicating last month's records and just changing the date.

kishikawakatsumi avatar Mar 11 '21 03:03 kishikawakatsumi

If so, we can easily add our recurring donations by simply duplicating last month's records and just changing the date.

Ah, It's reasonable. I've created it as a new issue. https://github.com/azu/philan.net/issues/19

azu avatar Mar 11 '21 05:03 azu

I've implemented the clone feature in #20

https://user-images.githubusercontent.com/19714/110800107-3a18cb80-82bf-11eb-939a-6d4cfa442215.mp4

azu avatar Mar 11 '21 14:03 azu

Data Table image:

 [StartDate, EndDate, Every?, to, URL, amount, why?]

We need to define Every? format. What format is suitable?

Probably, this lifecycle is バラバラ.

  • 毎月 n 日
  • nヶ月ごと
  • n 日ごと

決済日はいつですか – Syncable

毎月1日が決済日となっています。

About billing for GitHub Sponsors - GitHub Docs next billing date is different by user

よくある質問 | GiveOne

継続寄付は、お申し込み時点では決済されません。お申込みされてから直近の決済日(毎月10日、土日祝日にあたる場合は翌営業日)に決済されます。カード会社によって締め日・引き落とし日が違うので一概には言えませんが、決済日の翌月か翌々月にお引き落としがあります。

Probably, We would not need to get closing date strictly.

  • every x year (create new record at XXXX-{StartDate's month}-01)
  • every x month (create new record at XXXX-MM-{StartDate's day})
  • every x days (create new record at XXXX-MM-DD)

is even enough?

azu avatar Apr 08 '21 13:04 azu

Different approach:

azu avatar Jul 23 '21 15:07 azu