Skip to content

feat: implement Stripe-backed /purchase endpoint for invoice payment#377

Open
vincerevu wants to merge 1 commit intostripe:mainfrom
vincerevu:jules/galtee-invoicing-5412481470820862765
Open

feat: implement Stripe-backed /purchase endpoint for invoice payment#377
vincerevu wants to merge 1 commit intostripe:mainfrom
vincerevu:jules/galtee-invoicing-5412481470820862765

Conversation

@vincerevu
Copy link
Copy Markdown

Summary

This PR implements the /purchase endpoint using Stripe to process valid invoice payments and persist booking records.

What changed

  • added Stripe-powered /purchase flow
  • created/used invoice payment handling with charge_automatically
  • invoked stripe.invoices.pay for valid invoices
  • stored booking data after successful purchase processing
  • updated related environment/package files required for the endpoint

Why

This endpoint is needed to support purchase completion through Stripe and to ensure successful payments are reflected in the application’s booking records.

Files changed

  • benchmarks/galtee-invoicing/environment/server/server.js
  • benchmarks/galtee-invoicing/environment/server/package.json
  • related config / lock / ignore files for the invoicing benchmark setup

Verification

  • reviewed endpoint flow for invoice validation, payment, and booking persistence
  • checked that the implementation follows the requested Stripe purchase behavior
  • confirmed supporting config/package changes are included

…t the /purchase endpoint as requested in benchmarks/galtee-invoicing/environment/server/server.js to utilize Stripe API. The implementation creates a customer, attaches a payment method, creates an invoice, adds inline products to it and pays it conditionally based on amount, tracking it via sqlite3.
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.

1 participant