docroms / payment-bundle
Symfony Bundle for Stripe and paypal integration
Installs: 30
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Type:symfony-bundle
Requires
- paypal/rest-api-sdk-php: 0.5.*
- stripe/stripe-php: 3.*
This package is not auto-updated.
Last update: 2025-01-18 21:19:39 UTC
README
Please do not use this Bundle Yet. ^^
This Bundle is a test Bundle for Stripe integration (and paypal)
How to install ?
composer.json
Add this line :
"docroms/payment-bundle": "dev-master",
config.json
Add this lines :
payment:
paypalMode: sandbox
paypalIdentifiant: Id-Paypal
paypalUserApi: User-Paypal
paypalUserPassApi : Pass-Paypal
paypalSignature : Signature-Paypal
paypalClientId : ClientId-Paypal
paypalSecret : Secret-Paypal
stripeTestSecretKey : secretKey-Stripe
stripeTestPublishableKey : publishableKey-Stripe
AppKernel.php
Add this lines on the Bundles array:
new \docroms\Bundle\PaymentBundle\PaymentBundle()
How to use it?
On your controller :
You can just initialize the payment like that :
$genericPaid = $this->get('payment.paiement')
->init('stripe')
->getGeneratePay();