module Payments
  class PurchasePaymentsController < Payments::BaseController
    def show
      authorize PurchasePayment
      @purchase_payment = PurchasePayment.find(params[:id])

      if @purchase_payment.blank?
        flash[:error] = "No purchase payment found with ID: #{params[:id]}"
        redirect_to payments_purchase_profiles_path
        return
      end
    end
  end
end
