app/models/solidus_subscriptions/installment.rb
# Mark this installment as having a failed payment
#
# @param order [Spree::Order] The order generated for this processing
#   attempt
#
# @return [SolidusSubscriptions::InstallmentDetail] The record of the
#   failed processing attempt
Mark this installment as having a failed payment
Mark this installment as having a failed payment
def payment_failed!(order)
      advance_actionable_date!
      details.create!(
        success: false,
        order: order,
        message: I18n.t('solidus_subscriptions.installment_details.payment_failed')
      )
    end
def payment_failed! ( order ) advance_actionable_date! details . create! ( success : false , order : order , message : I18n . t ( 'solidus_subscriptions.installment_details.payment_failed' ) ) end
Mark this installment as having a failed payment
Mark this installment as having a failed payment
The record of the failed processing attempt
The record of the failed processing attempt
SolidusSubscriptions::InstallmentDetail
order
The order generated for this processing attempt
The order generated for this processing attempt