Class: StripeHelper::StripeCell

Inherits:
Cell::Rails
  • Object
show all
Defined in:
app/cells/stripe_helper/stripe_cell.rb

Instance Method Summary collapse

Instance Method Details

#capture(args) ⇒ Object

capture CC to stripe token



16
17
18
19
20
21
# File 'app/cells/stripe_helper/stripe_cell.rb', line 16

def capture(args)
  @pk     = args[:pk]
  @url    = args[:url]

  render
end

#show(args) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
# File 'app/cells/stripe_helper/stripe_cell.rb', line 3

def show(args)
  @amount = args[:amount]
  @desc   = args[:desc]
  @image  = args[:image]
  @pk     = args[:pk]
  @stem   = args[:stem]
  @store  = args[:store]
  @token  = args[:token]

  render
end