Create the Stripe payment integration skeleton for order settlement.
Current status: registration scaffold with stable payment contracts and webhook map.
app/integrations/stripe/stripe_client.py
app/application/services/payment_service.py
app/interfaces/api/payment_routes.py
app/infrastructure/tasks/stripe_webhook_worker.py
create_payment_intent(order_id, amount, currency) returns provider intent id + client secret.
capture_payment(provider_intent_id) captures authorized funds.
cancel_payment(provider_intent_id) voids uncaptured authorization.
handle_webhook(event) verifies signature and upserts payment status.
ORDER_CREATED when payment intent is created.
PAYMENT_SUCCEEDED when capture confirms.
runtime/src/integrations/stripe/stripe-payment-service.js
runtime/tests and npm test in runtime/.
共 1 个版本