mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-13 23:37:47 +00:00
17 lines
438 B
Ruby
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
|