class Stall::Cmcic::Gateway::Request

Attributes

cart[R]

Public Class Methods

new(cart) click to toggle source
# File lib/stall/cmcic/gateway.rb, line 49
def initialize(cart)
  @cart = cart
end

Public Instance Methods

gateway() click to toggle source
# File lib/stall/cmcic/gateway.rb, line 65
def gateway
  @gateway = Stall::Cmcic::Gateway.new(cart)
end
params() click to toggle source
# File lib/stall/cmcic/gateway.rb, line 57
def params
  @params ||= Stall::Cmcic::CicPayment.new(gateway, parse_urls: true).request(
    montant: price_with_currency(cart.total_price),
    reference: gateway.transaction_id,
    texte_libre: cart.reference
  )
end
payment_form_partial_path() click to toggle source
# File lib/stall/cmcic/gateway.rb, line 53
def payment_form_partial_path
  'stall/cmcic/payment_form'
end