NottingHack / hms2

Version 2 of our Hackspace Management System
MIT License
13 stars 14 forks source link

Stripe API and SDK update #574

Open dpslwk opened 1 year ago

dpslwk commented 1 year ago

We are using API: 2020-08-27 SDK: 7.x

update to API: 2020-08-27 SDK 10.x

not being use by hms at the mo but

The charges property on PaymentIntent has been removed. You can use the latest_charge property instead.

api calls can request to use a version Stripe::setApiVersion('2020-08-27'); web hooks are delivered using the account default api-version at time of creation if another is not set during creation

need to update all code to latest api and SDK and then also explicitly fix API version durivng all calls and Webhook creation once deployed it might best to recreate Webhook endpoints so there at the correct version

need to check how version effects js sdk seprate from php sdk