Skip to content

Implement Stripe PaymentIntent creation for payments#16

Open
marklao666888 wants to merge 2 commits into
SecureBananaLabs:mainfrom
marklao666888:codex/stripe-payment-intent
Open

Implement Stripe PaymentIntent creation for payments#16
marklao666888 wants to merge 2 commits into
SecureBananaLabs:mainfrom
marklao666888:codex/stripe-payment-intent

Conversation

@marklao666888
Copy link
Copy Markdown

Closes #1

Summary

  • Replaced the placeholder payment intent implementation with the Stripe SDK.
  • Added amount/currency validation, metadata normalization, and Stripe API error message preservation.
  • Added Node test coverage with a mocked Stripe client plus an opt-in Stripe smoke test guarded by environment variables.

Validation

  • node --check apps/api/src/services/paymentService.js
  • node --check apps/api/src/tests/paymentService.test.js
  • node --check apps/api/src/tests/paymentService.smoke.test.js
  • node --test apps/api/src/tests/paymentService.test.js

@marklao666888
Copy link
Copy Markdown
Author

Submitted the payment gateway implementation for #1.

This PR adds Stripe PaymentIntent creation, amount/currency validation, manual capture for escrow-style payments, platform fee calculation, Connect transfer support, and payment service tests.

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.

Implement Secure Payment Gateway and Payment Service

2 participants