class AuthorizeNet::SIM::HostedPaymentForm
Models a hosted payment form.
Attributes
background_url[RW]
color_background[RW]
color_link[RW]
color_text[RW]
header_html[RW]
logo_url[RW]
rename[RW]
Public Instance Methods
add_rename(field, name)
click to toggle source
Convenience method for adding field rename requests to the transaction. This renames a field shown on the hosted payment form.
# File lib/authorize_net/sim/hosted_payment_form.rb, line 12 def add_rename(field, name) rename = "#{field},#{name}" unless @rename.nil? @rename = @rename.to_a << rename else @rename = [rename] end end
to_hash()
click to toggle source
# File lib/authorize_net/sim/hosted_payment_form.rb, line 21 def to_hash hash = { :header_html_payment_form => @header_html, :footer_html_payment_form => @footer_html, :color_background => @color_background, :color_link => @color_link, :color_text => @color_text, :logo_url => @logo_url, :background_url => @background_url, :rename => @rename } hash.delete_if {|k, v| v.nil?} hash end