Add recipe for stripe/stripe-php 19.0 (#1890)

This recipe configures the Stripe PHP client with:
- Service definition for Stripe\StripeClient
- Autowiring support via service alias
- Environment variable configuration for STRIPE_SECRET_KEY
This commit is contained in:
Oskar Stark
2025-11-28 09:05:17 +01:00
committed by GitHub
parent 27766297a2
commit dc7815f361
2 changed files with 15 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
services:
stripe.client:
class: 'Stripe\StripeClient'
arguments:
- '%env(STRIPE_SECRET_KEY)%'
Stripe\StripeClient: '@stripe.client'

View File

@@ -0,0 +1,8 @@
{
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"env": {
"STRIPE_SECRET_KEY": "sk_test_***"
}
}