NottingHack / NottingHack/hms2
Stripe API and SDK update
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 14
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the PHP SDK usage, JavaScript SDK usage, Stripe API calls, and webhook creation paths. Check how the current SDK and API versions are configured, including Stripe::setApiVersion('2020-08-27'). Done means updating the integrations to SDK 10.x, handling the PaymentIntent latest_charge property, and explicitly setting the required API version for calls and webhook creation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, php
- Domain
- payments
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100