class PayU::Form

Attributes

signer[R]

Public Class Methods

new(params) click to toggle source
Calls superclass method
# File lib/pay_u/form.rb, line 8
def initialize(params)
  super(params)
  @signer = PayU::Signer::Form.new(order.attributes)
end

Public Instance Methods

params() click to toggle source
# File lib/pay_u/form.rb, line 19
def params
  {
    action: PayU.configuration.webcheckout_url,
    fields: {
      merchantId: order.merchant_id,
      accountId: order.account_id,
      description: order.description,
      referenceCode: order.reference_code,
      amount: order.amount,
      tax: order.tax,
      taxReturnBase: order.tax_return_base,
      currency: order.currency,
      signature: signature,
      test: order.test? ? "1" : "0",
      extra1: order.extra_1,
      extra2: order.extra_2,
      extra3: order.extra_3,
      responseUrl: order.response_url,
      confirmationUrl: order.confirmation_url,
    },
  }
end
signature() click to toggle source
# File lib/pay_u/form.rb, line 14
def signature
  signer.signature
end