You are here

public static function Braintree_TransparentRedirect::createCreditCardData in Commerce Braintree 7

returns the trData string for creating a credit card,

Parameters

array $params:

Return value

string

2 calls to Braintree_TransparentRedirect::createCreditCardData()
Braintree_CreditCardTest::createCreditCardViaTr in braintree_php/tests/integration/CreditCardTest.php
Braintree_TransparentRedirectTest::testCreateCreditCardFromTransparentRedirect in braintree_php/tests/integration/TransparentRedirectTest.php

File

braintree_php/lib/Braintree/TransparentRedirect.php, line 131

Class

Braintree_TransparentRedirect
Static class providing methods to build Transparent Redirect urls

Code

public static function createCreditCardData($params) {
  Braintree_Util::verifyKeys(self::$_createCreditCardSignature, $params);
  $params["kind"] = Braintree_TransparentRedirect::CREATE_PAYMENT_METHOD;
  return self::_data($params);
}