Method: Supercharged::ChargesController#complete
- Defined in:
- app/controllers/supercharged/charges_controller.rb
#complete ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'app/controllers/supercharged/charges_controller.rb', line 30 def complete params.require(:token) @charge = Charge.with_token(params[:token]) if @charge @charge.complete(params) redirect_to root_url else head :not_found end end |