Class: SolidusNexio::OneTimeTokensController
- Inherits:
-
BasePaymentController
- Object
- Spree::Api::BaseController
- BasePaymentController
- SolidusNexio::OneTimeTokensController
- Defined in:
- app/controllers/solidus_nexio/one_time_tokens_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'app/controllers/solidus_nexio/one_time_tokens_controller.rb', line 5 def create result = payment_method.generate_token(one_time_token_params) if result render json: { data: result }, status: 201 else head 422 end end |