Sha256: 96a74c745fca913a1dff9f95bcc90768b2fb67484f72a7a4adb99d924f1f25f5
Contents?: true
Size: 588 Bytes
Versions: 7
Compression:
Stored size: 588 Bytes
Contents
module SolidusNexio class PaymentStatesController < Spree::StoreController def show payment_method = PaymentMethod.find(params[:payment_method_id]) payment = payment_method.payments.find(params[:payment_id]) render json: { data: { state: payment.state } } end def capture payment_method = PaymentMethod.find(params[:payment_method_id]) payment = payment_method.payments.find(params[:payment_id]) @result = payment_method.capture_order_payment(payment, params[:id], params[:status]) render :capture, layout: false end end end
Version data entries
7 entries across 7 versions & 1 rubygems