Sha256: 5e8ce8906aa3c98b705a9106f89285815692dc718858b321a907183986eb57f4

Contents?: true

Size: 363 Bytes

Versions: 3

Compression:

Stored size: 363 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

          puts payment_methods

          render json: payment_methods
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spree_mollie_gateway-1.0.0 app/controllers/spree/api/v1/mollie_controller.rb
spree_mollie_gateway-1.0.0.pre.beta4 app/controllers/spree/api/v1/mollie_controller.rb
spree_mollie_gateway-1.0.0.pre.beta3 app/controllers/spree/api/v1/mollie_controller.rb