lib/active_merchant/billing/gateways/trexle.rb in activemerchant-1.107.4 vs lib/active_merchant/billing/gateways/trexle.rb in activemerchant-1.108.0

- old
+ new

@@ -135,10 +135,10 @@ expiry_year: creditcard.year, cvc: creditcard.verification_value, name: creditcard.name ) elsif creditcard.kind_of?(String) - if creditcard =~ /^token_/ + if /^token_/.match?(creditcard) post[:card_token] = creditcard else post[:customer_token] = creditcard end end