diff options
author | claucece <soficeli0@gmail.com> | 2015-09-15 00:26:52 -0500 |
---|---|---|
committer | claucece <soficeli0@gmail.com> | 2015-10-05 22:34:21 -0500 |
commit | d11768e58b98312c95a8ac5e9c18e3069b4d76dc (patch) | |
tree | 35b4cfaf0814222e675f7fbd5423f6214b5d4aef /engines/billing/app/controllers | |
parent | 70073b1ac48f96d3e375630fb7f3904351e0f696 (diff) |
implemented the form and the generate
Diffstat (limited to 'engines/billing/app/controllers')
-rw-r--r-- | engines/billing/app/controllers/payments_controller.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/billing/app/controllers/payments_controller.rb b/engines/billing/app/controllers/payments_controller.rb index fce6570..b7a8e24 100644 --- a/engines/billing/app/controllers/payments_controller.rb +++ b/engines/billing/app/controllers/payments_controller.rb @@ -2,7 +2,7 @@ class PaymentsController < BillingBaseController before_filter :require_login, :only => [:index] def new - fetch_transparent_redirect + @client_token = Braintree::ClientToken.generate end def confirm @@ -25,10 +25,11 @@ class PaymentsController < BillingBaseController protected - + def fetch_transparent_redirect @tr_data = Braintree::TransparentRedirect.transaction_data redirect_url: confirm_payment_url, transaction: { type: "sale", options: {submit_for_settlement: true } } end + end |