Permalink
Browse files

Remove Address Embedding As It's Not Necessary

  • Loading branch information...
1 parent 1db78ab commit 0220df25ead4b1d47e143ffa9471b54c3d04a844 Tres committed Mar 4, 2012
Showing with 7 additions and 6 deletions.
  1. +7 −6 lib/active_merchant/billing/gateways/cyber_source.rb
@@ -160,9 +160,10 @@ def update_subscription(identification, options = {})
commit(build_update_subscription_request(identification, options), options)
end
- def get_subscription_status(identification, options={})
- setup_address_hash(options)
- commit(build_check_subscription_request(identification, options), options)
+ def get_subscription_status(options={})
+ requires!(options, :subscription_id)
+ requires!(options, :date)
+ commit(build_check_subscription_request(options), options)
end
@@ -275,11 +276,11 @@ def build_credit_request(money, identification, options)
xml.target!
end
- def build_check_subscription_request(identification, options)
- reference_code, subscription_id, request_token = identification.split(";")
+ def build_check_subscription_request(options)
+
xml = Builder::XmlMarkup.new :indent => 2
add_subscription(xml, options)
- add_subscription_check_service(xml, subscription_id)
+ add_subscription_check_service(xml, options[:subscription_id])
add_business_rules_data(xml)
end

0 comments on commit 0220df2

Please sign in to comment.