Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ensure Options Are Passed

  • Loading branch information...
commit 7f785b891143d62ddf84656b710c837dc3a00240 1 parent 2d4a63c
Tres authored
Showing with 6 additions and 7 deletions.
  1. +6 −7 lib/active_merchant/billing/gateways/cyber_source.rb
View
13 lib/active_merchant/billing/gateways/cyber_source.rb
@@ -160,10 +160,9 @@ def update_subscription(identification, options = {})
commit(build_update_subscription_request(identification, options), options)
end
- def get_subscription_status(options={})
- requires!(options, :subscription_id)
- requires!(options, :date)
- commit(build_check_subscription_request(options), options)
+ def get_subscription_status(subscription_id, options={})
+ requires!(options, :order_id)
+ commit(build_check_subscription_request(subscription_id, options), options)
end
@@ -276,11 +275,11 @@ def build_credit_request(money, identification, options)
xml.target!
end
- def build_check_subscription_request(options)
+ def build_check_subscription_request(subscription_id, options)
xml = Builder::XmlMarkup.new :indent => 2
- #add_subscription(xml, options)
- add_subscription_check_service(xml, options[:subscription_id])
+ add_subscription(xml, options)
+ add_subscription_check_service(xml, subscription_id)
add_business_rules_data(xml)
end
Please sign in to comment.
Something went wrong with that request. Please try again.