Class: Beecart::Gateway::BaseGateway

Inherits:
Object
  • Object
show all
Defined in:
lib/beecart/gateway/base_gateway.rb

Direct Known Subclasses

WebpayGateway

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ BaseGateway

Returns a new instance of BaseGateway.



7
# File 'lib/beecart/gateway/base_gateway.rb', line 7

def initialize *args; end

Instance Method Details

#authorize(price) ⇒ Boolean

クレジットカードに対して与信をかける

Parameters:

  • price (Integer)

    与信をかける額

Returns:

  • (Boolean)


19
# File 'lib/beecart/gateway/base_gateway.rb', line 19

def authorize price; end

#charge(price) ⇒ Boolean

クレジットカードで本決済をかける

Parameters:

  • price (Integer)

    決済手段にて支払う額

Returns:

  • (Boolean)


13
# File 'lib/beecart/gateway/base_gateway.rb', line 13

def charge price; end