Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 1.4 KB

README.md

File metadata and controls

36 lines (28 loc) · 1.4 KB

paymentBundle

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();