Parent

Methods

Included Modules

Class Index [+]

Quicksearch

ActiveMerchant::Billing::OrbitalSoftDescriptors

Constants

PHONE_FORMAT_1
PHONE_FORMAT_2

Attributes

merchant_name[RW]

Unlike Salem, the only value that gets passed on the cardholder statement is the Merchant Name field. And for these customers, it is a maximum of 25 bytes of data.

All other Soft Descriptor fields can optionally be sent, but will not be submitted to the settlement host and will not display on the cardholder statement.

product_description[RW]

Unlike Salem, the only value that gets passed on the cardholder statement is the Merchant Name field. And for these customers, it is a maximum of 25 bytes of data.

All other Soft Descriptor fields can optionally be sent, but will not be submitted to the settlement host and will not display on the cardholder statement.

merchant_city[RW]

Unlike Salem, the only value that gets passed on the cardholder statement is the Merchant Name field. And for these customers, it is a maximum of 25 bytes of data.

All other Soft Descriptor fields can optionally be sent, but will not be submitted to the settlement host and will not display on the cardholder statement.

merchant_phone[RW]

Unlike Salem, the only value that gets passed on the cardholder statement is the Merchant Name field. And for these customers, it is a maximum of 25 bytes of data.

All other Soft Descriptor fields can optionally be sent, but will not be submitted to the settlement host and will not display on the cardholder statement.

merchant_url[RW]

Unlike Salem, the only value that gets passed on the cardholder statement is the Merchant Name field. And for these customers, it is a maximum of 25 bytes of data.

All other Soft Descriptor fields can optionally be sent, but will not be submitted to the settlement host and will not display on the cardholder statement.

merchant_email[RW]

Unlike Salem, the only value that gets passed on the cardholder statement is the Merchant Name field. And for these customers, it is a maximum of 25 bytes of data.

All other Soft Descriptor fields can optionally be sent, but will not be submitted to the settlement host and will not display on the cardholder statement.

Public Class Methods

new(options = {}) click to toggle source
    # File lib/active_merchant/billing/gateways/orbital/orbital_soft_descriptors.rb, line 21
21:       def initialize(options = {})
22:         self.merchant_name = options[:merchant_name]
23:         self.merchant_city = options[:merchant_city]
24:         self.merchant_phone = options[:merchant_phone]
25:         self.merchant_url = options[:merchant_url]
26:         self.merchant_email = options[:merchant_email]
27:       end

Public Instance Methods

validate() click to toggle source
    # File lib/active_merchant/billing/gateways/orbital/orbital_soft_descriptors.rb, line 29
29:       def validate
30:         errors.add(:merchant_name, "is required") if self.merchant_name.blank?
31:         errors.add(:merchant_name, "is required to be 25 bytes or less") if self.merchant_name.bytesize > 25
32:         
33:         unless self.merchant_phone.blank? || self.merchant_phone.match(PHONE_FORMAT_1) || self.merchant_phone.match(PHONE_FORMAT_2)
34:           errors.add(:merchant_phone, "is required to follow \"NNN-NNN-NNNN\" or \"NNN-AAAAAAA\" format")
35:         end
36:         
37:         [:merchant_email, :merchant_url].each do |attr|
38:           unless self.send(attr).blank?
39:             errors.add(attr, "is required to be 13 bytes or less") if self.send(attr).bytesize > 13
40:           end
41:         end
42:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.