NottingHack / NottingHack/hms2

Stripe API and SDK update

Open
#574 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.