-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added docs on how to deal with cancellations in the stripe api
- Loading branch information
1 parent
f57f892
commit 663324a
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
663324a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This worked great except for 3 changes I had to make:
Change the
ends_at
field insubscriptions
table to typeTIMESTAMP WITH TIME ZONE
. In the IHP Stripe guide for creating thesubscriptions
table[1], it instructs to make theends_at
field of type date. However,getCurrentTime
is of timeUTCTime
so|> set #endsAt now
does not work out of the box.@Subscription
had to be changed to@Web.Controller.Prelude.Subscription
to avoid ambiguity.Add
pure ()
after[1] https://ihp.digitallyinduced.com/Guide/stripe.html#subscriptions-table
663324a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Fixed this via 5f07ff0