dmjio / stripe

:moneybag: Stripe API
http://hackage.haskell.org/package/stripe-haskell
177 stars 74 forks source link

Sessions not implemented? #120

Open NorfairKing opened 5 years ago

NorfairKing commented 5 years ago

This seems to be required for all payments , before September 15 2019. Is there any plan to add this? How can I help?

dmjio commented 5 years ago

At the time this API was implemented, I don't believe sessions were present.

https://web.archive.org/web/20140625062328/https://stripe.com/docs/api

NorfairKing commented 5 years ago

Yes, that makes sense, but on Sept 15 2019, new regulation comes into effect that requires everyone using stripe to use the new API. This includes sessions. How can I help to make this happen?

Also, in EventData, the UnknownEventData constructor should probably contain a Data.Aeson.Value.

NorfairKing commented 5 years ago

The EventType constructor called UnknownEventType should probably also include a Text.

danstn commented 5 years ago

+1

Currently parsing "checkout.session.completed" event manually. Would be great to have Session support :)

NorfairKing commented 5 years ago

@danstn Could you help with #122 then?