Skip to content

Commit

Permalink
Merge pull request #896 from recurly/add_card_network_preference
Browse files Browse the repository at this point in the history
Add card_network_preference field to v2
  • Loading branch information
arzitney authored Mar 19, 2024
2 parents f4073d1 + ff0a76a commit 9da52e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/recurly/billing_info.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ class BillingInfo < Resource
backup_payment_method
cc_bin_country
online_banking_payment_type
card_network_preference
) | CREDIT_CARD_ATTRIBUTES | BANK_ACCOUNT_ATTRIBUTES | AMAZON_ATTRIBUTES | PAYPAL_ATTRIBUTES | ROKU_ATTRIBUTES | SEPA_ATTRIBUTES | BACS_ATTRIBUTES | BECS_ATTRIBUTES | VENMO_ATTRIBUTES

# Verify an account's stored billing info
Expand Down
2 changes: 2 additions & 0 deletions spec/recurly/billing_info_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
:last_four => "1111",
:city => "Los Angeles",
:state => "CA",
:card_network_preference => "Cartes Bancaires",
:gateway_attributes => { account_reference: "ABC123" },
)
}
Expand All @@ -20,6 +21,7 @@
binfo.gateway_code = "gatewaycode123"
binfo.to_xml.must_equal <<XML.chomp
<billing_info>\
<card_network_preference>Cartes Bancaires</card_network_preference>\
<card_type>Visa</card_type>\
<city>Los Angeles</city>\
<first_name>Larry</first_name>\
Expand Down

0 comments on commit 9da52e9

Please sign in to comment.