Stripe Payment Adapter
amerta / Stripe Payment Adapter
Stripe Payment Adapter
Title
Stripe Payment Adapter
Description
This adapter implements the PaymentAdapter interface to handle credit card payments via Stripe. It supports both frontend (Client Secret) and backend payment processing with automatic webhook setup.
Features
- PCI-compliant credit card processing
- Support for multiple payment methods (cards, wallets, etc.)
- Automatic webhook creation and management
- Multi-currency support with zero-decimal currency handling
- Duplicate transaction detection
- Server-side payment intent management
- Currency conversion with exchange rates
Configuration
- slug: "stripe"
- label: "Credit Card (Stripe)"
- Settings: Publishable key, secret key, webhook ID, webhook secret
Payment Flow
- Frontend creates/updates payment intent using client secret
- User completes payment on frontend with Stripe Elements
- Stripe sends webhook to confirm payment
- Backend processes webhook, verifies transaction, and updates order
- User is redirected to order confirmation page
Webhook Events Handled
payment_intent.succeeded- Payment successfully completedpayment_intent.payment_failed- Payment failedcharge.refunded- Payment refunded