You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: stripe_payment_failed.rb
    path of file: ./repos/miru-web/app/services/invoice_payment
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

class InvoicePayment::StripePaymentFailed < ApplicationService
  attr_reader :event, :data_object
  attr_accessor :invoice

  def initialize(event)
    @event = eve
    
  def process
    @invoice = Invoice.where("payment_infos ->> 'stripe_payment_intent' = ?", data_object.id).first
    @payment = Payment.create!(payment_params)
    rescue StandardError => error
      Rails.logger.error error.message
      Rails.logger.error error.backtrace.join("\n")
      nil
  end