Class: SagePay::Server::Cancel
- Defined in:
- lib/sage_pay/server/cancel.rb
Instance Attribute Summary collapse
-
#security_key ⇒ Object
Returns the value of attribute security_key.
-
#vps_tx_id ⇒ Object
Returns the value of attribute vps_tx_id.
Attributes inherited from Command
#mode, #vendor, #vendor_tx_code
Instance Method Summary collapse
Methods inherited from Command
decimal_accessor, #initialize, #response_from_response_body, #run!, #url
Constructor Details
This class inherits a constructor from SagePay::Server::Command
Instance Attribute Details
#security_key ⇒ Object
Returns the value of attribute security_key.
6 7 8 |
# File 'lib/sage_pay/server/cancel.rb', line 6 def security_key @security_key end |
#vps_tx_id ⇒ Object
Returns the value of attribute vps_tx_id.
6 7 8 |
# File 'lib/sage_pay/server/cancel.rb', line 6 def vps_tx_id @vps_tx_id end |
Instance Method Details
#live_service ⇒ Object
20 21 22 |
# File 'lib/sage_pay/server/cancel.rb', line 20 def live_service "cancel" end |
#post_params ⇒ Object
13 14 15 16 17 18 |
# File 'lib/sage_pay/server/cancel.rb', line 13 def post_params super.merge({ "VPSTxId" => vps_tx_id, "SecurityKey" => security_key }) end |
#simulator_service ⇒ Object
24 25 26 |
# File 'lib/sage_pay/server/cancel.rb', line 24 def simulator_service "VendorCancelTx" end |