lib/tres_delta/vault.rb in tres_delta-0.0.1 vs lib/tres_delta/vault.rb in tres_delta-0.0.2
- old
+ new
@@ -66,7 +66,21 @@
'RetrieveCardNumber' => include_card_number ? 'true' : 'false',
'Token' => token
}
}
end
+
+ def get_token_for_card_number(card_number, customer)
+ request(:get_token_for_card_number, get_token_for_card_number_params(card_number, customer))
+ end
+
+ def get_token_for_card_number_params(card_number, customer)
+ {
+ 'clientCredentials' => client_credentials,
+ 'getTokenForCardNumberParams' => {
+ 'AccountNumber' => card_number,
+ 'CustomerIdentifier' => customer_identifier(customer)
+ }
+ }
+ end
end
end