Sha256: 981ed8e00c708cbe8e1b1a49dbc70bbe88013227c3bec3f1286a32996b6cd7e3

Contents?: true

Size: 332 Bytes

Versions: 6

Compression:

Stored size: 332 Bytes

Contents

module Spree
  module Api
    module V1
      class MollieController < BaseController
        def methods
          mollie = Spree::PaymentMethod.find_by_type 'Spree::Gateway::MollieGateway'
          payment_methods = mollie.available_payment_methods

          render json: payment_methods
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spree_mollie_gateway-1.0.7 app/controllers/spree/api/v1/mollie_controller.rb
spree_mollie_gateway-1.0.6 app/controllers/spree/api/v1/mollie_controller.rb
spree_mollie_gateway-1.0.5 app/controllers/spree/api/v1/mollie_controller.rb
spree_mollie_gateway-1.0.4 app/controllers/spree/api/v1/mollie_controller.rb
spree_mollie_gateway-1.0.3 app/controllers/spree/api/v1/mollie_controller.rb
spree_mollie_gateway-1.0.2 app/controllers/spree/api/v1/mollie_controller.rb