Files
openfoodnetwork/app/controllers/payment_gateways/taler_controller.rb
2026-01-29 15:07:28 +11:00

17 lines
438 B
Ruby

# frozen_string_literal: true
module PaymentGateways
class TalerController < BaseController
include OrderCompletion
# The Taler merchant backend has taken the payment.
# Now we just need to confirm that and update our local database
# before finalising the order.
def confirm
payment = Spree::Payment.find(params[:payment_id])
@order = payment.order
process_payment_completion!
end
end
end