Permalink
Browse files

full card details are no longer required to cancel a recurring card

  • Loading branch information...
1 parent 2492471 commit 0a84c870fc0a337a8e711750596dee3fbda65bbd @brianewing committed Mar 10, 2012
Showing with 7 additions and 4 deletions.
  1. +7 −4 lib/real_ex/recurring.rb
View
@@ -85,10 +85,13 @@ def to_xml
per.card do |c|
c.ref reference
c.payerref payer.reference
- c.number card.number
- c.expdate card.expiry_date
- c.chname card.cardholder_name
- c.type card.type
+
+ unless self.cancel
+ c.number card.number
+ c.expdate card.expiry_date
+ c.chname card.cardholder_name
+ c.type card.type
+ end
end
end
end

0 comments on commit 0a84c87

Please sign in to comment.