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

0.0.6 2016-07-07 12:50 UTC

This package is not auto-updated.

Last update: 2024-04-13 16:29:31 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();