Skip to content

Commit

Permalink
Fixed stripe extension definition
Browse files Browse the repository at this point in the history
  • Loading branch information
rogergros committed May 29, 2015
1 parent 760b22d commit 1339214
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ public function load(array $configs, ContainerBuilder $container)
$container->setParameter('stripe.public.key', $config['public_key']);
$container->setParameter('stripe.controller.route', $config['controller_route']);

$container->setParameter('stripe.templates.view_template', $config['templates']['view_template']);
$container->setParameter('stripe.templates.scripts_template', $config['templates']['scripts_template']);

$container->setParameter('stripe.success.route', $config['payment_success']['route']);
$container->setParameter('stripe.success.order.append', $config['payment_success']['order_append']);
$container->setParameter('stripe.success.order.field', $config['payment_success']['order_append_field']);
Expand Down
2 changes: 2 additions & 0 deletions src/PaymentSuite/StripeBundle/Resources/config/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ services:
stripe.public.key: %stripe.public.key%
form.factory: @form.factory
payment.bridge: @payment.bridge
view_template: %stripe.templates.view_template%
scripts_template: %stripe.templates.scripts_template%
tags:
- { name: twig.extension }

Expand Down

0 comments on commit 1339214

Please sign in to comment.