Class: Reji::PaymentController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Reji::PaymentController
- Defined in:
- app/controllers/reji/payment_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'app/controllers/reji/payment_controller.rb', line 7 def show @stripe_key = Reji.configuration.key @payment = Reji::Payment.new( Stripe::PaymentIntent.retrieve( params[:id], Reji. ) ) @redirect = params[:redirect] render template: 'payment' end |