Please do not use this Bundle Yet. ^^
This Bundle is a test Bundle for Stripe integration (and paypal)
Add this line :
"docroms/payment-bundle": "dev-master",
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
Add this lines on the Bundles array:
new \docroms\Bundle\PaymentBundle\PaymentBundle()
You can just initialize the payment like that :
$genericPaid = $this->get('payment.paiement')
->init('stripe')
->getGeneratePay();