Class: Google4R::Checkout::ChargeOrderCommand
- Defined in:
- lib/google4r/checkout/commands.rb
Overview
The ChargeOrderCommand instructs Google Checkout to charge the buyer for a particular order.
Constant Summary
Constants inherited from Command
Google4R::Checkout::Command::CHECKOUT_API_URL, Google4R::Checkout::Command::DONATE_CHECKOUT_API_URL, Google4R::Checkout::Command::DONATE_ORDER_PROCESSING_API_URL, Google4R::Checkout::Command::DONATE_ORDER_REPORT_API_URL, Google4R::Checkout::Command::ORDER_PROCESSING_API_URL, Google4R::Checkout::Command::ORDER_REPORT_API_URL, Google4R::Checkout::Command::POLLING_API_URL, Google4R::Checkout::Command::PRODUCTION_URL_PREFIX, Google4R::Checkout::Command::SANDBOX_URL_PREFIX
Instance Attribute Summary collapse
-
#amount ⇒ Object
The amount to charge, optional, Money.
Attributes inherited from Command
#command_tag_name, #frontend, #google_order_number
Instance Method Summary collapse
-
#to_xml ⇒ Object
Generates the XML for this ChargeOrderCommand.
Methods inherited from Command
#initialize, #send_to_google_checkout
Constructor Details
This class inherits a constructor from Google4R::Checkout::Command
Instance Attribute Details
#amount ⇒ Object
The amount to charge, optional, Money
456 457 458 |
# File 'lib/google4r/checkout/commands.rb', line 456 def amount @amount end |
Instance Method Details
#to_xml ⇒ Object
Generates the XML for this ChargeOrderCommand
459 460 461 |
# File 'lib/google4r/checkout/commands.rb', line 459 def to_xml ChargeOrderCommandXmlGenerator.new(self).generate end |