Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IDM-209] - feat: stripe checkout #587

Closed
wants to merge 22 commits into from

Conversation

kiremitrov123
Copy link
Collaborator

@kiremitrov123 kiremitrov123 commented Jul 29, 2024

Description

This pull request implements the backend logic for creating a checkout session within the Access Bridge component. It establishes the necessary interactions with the Sims and Stripe services to validate access plans and create a checkout session.

The Access Bridge now includes the following backend interactions:

Retrieve Available Plans:

  • Access Bridge queries Sims for available access plans for a specified site and validates the provided access_plan_id.

Create Stripe Checkout Session:

  • Upon successful plan validation, Access Bridge requests Stripe to create a checkout session. This includes sending details like price_id, mode, and redirect_url. Also, the SIMS viewer_id is added as a metadata to the checkout session.

Endpoint:
POST: /v2/checkout

Jira card: Create checkout session
Design document: AC-SIMS integration

According to our definition of done, I have completed the following steps:

  • Acceptance criteria met
  • Unit tests added
  • Docs updated (including config and env variables)
  • Translations added
  • UX tested
  • Browsers / platforms tested
  • Rebased & ready to merge without conflicts
  • Reviewed own code

@kiremitrov123 kiremitrov123 changed the base branch from develop to IDM-169/stripe-products July 29, 2024 11:31
Copy link

github-actions bot commented Jul 29, 2024

Visit the preview URL for this PR (updated for commit 3c4220f):

https://ottwebapp--pr587-idm-209-stripe-check-vl8fsm9t.web.app

(expires Wed, 16 Oct 2024 09:44:37 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: c198f8a3a199ba8747819f7f1e45cf602b777529

@kiremitrov123 kiremitrov123 marked this pull request as ready for review August 26, 2024 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants