app/services/c100_app/payments_flow_control.rb
# Returning users after paying (or failing/cancelling)
Returning users after paying (or failing/cancelling)
Returning users after paying ( or failing / cancelling )
def next_url
      if OnlinePayments.retrieve_payment(payment_intent).success?
        return confirmation_url
      end
      move_status_to :in_progress
      payment_error_errors_path
    rescue StandardError => exception
      raise Errors::PaymentUnexpectedError, exception
    end
def next_url if OnlinePayments . retrieve_payment ( payment_intent ) . success? return confirmation_url end move_status_to :in_progress payment_error_errors_path rescue StandardError => exception raise Errors :: PaymentUnexpectedError , exception end
Returning users after paying (or failing/cancelling)
Returning users after paying ( or failing / cancelling )
# Revert to `in_progress` as we are certain at this point payment failed