class PaymentPage < ActiveRecord::Base

	belongs_to :customer_package
	belongs_to :customer

	before_create :generate_token

	def generate_token
		self.pageid = SecureRandom.uuid
	end

	def to_param
		pageid
	end

end
