Skip to content

DocRoms/BUNDLE_STRIPE

Repository files navigation

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

About

Test - Stripe Bundle for Symfony Project

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages