Class: StripePaymentIntent

Inherits:
ApplicationRecord
  • Object
show all
Defined in:
lib/ecko/plugins/stripe/payment_intent.rb

Overview

Schema Information

Table name: payment_intentions

id :bigint(8) not null, primary key code :string not null reference :string not null category :string default("stripe"), not null payable_type :string payable_id :bigint(8) metadata :jsonb not null status :integer default("pending")

Instance Method Summary collapse

Instance Method Details

#set_codeObject



27
28
29
# File 'lib/ecko/plugins/stripe/payment_intent.rb', line 27

def set_code
  self.code = SecureRandom.uuid
end