public static function Braintree_TransparentRedirect::confirm in Commerce Braintree 7
10 calls to Braintree_TransparentRedirect::confirm()
- Braintree_TransparentRedirectTest::testCreateCreditCardFromTransparentRedirect in braintree_php/
tests/ integration/ TransparentRedirectTest.php - Braintree_TransparentRedirectTest::testCreateCustomerFromTransparentRedirect in braintree_php/
tests/ integration/ TransparentRedirectTest.php - Braintree_TransparentRedirectTest::testCreateTransactionFromTransparentRedirect in braintree_php/
tests/ integration/ TransparentRedirectTest.php - Braintree_TransparentRedirectTest::testUpdateCreditCardFromTransparentRedirect in braintree_php/
tests/ integration/ TransparentRedirectTest.php - Braintree_TransparentRedirectTest::testUpdateCustomerFromTransparentRedirect in braintree_php/
tests/ integration/ TransparentRedirectTest.php
File
- braintree_php/
lib/ Braintree/ TransparentRedirect.php, line 108
Class
- Braintree_TransparentRedirect
- Static class providing methods to build Transparent Redirect urls
Code
public static function confirm($queryString) {
$params = Braintree_TransparentRedirect::parseAndValidateQueryString($queryString);
$confirmationKlasses = array(
Braintree_TransparentRedirect::CREATE_TRANSACTION => 'Braintree_Transaction',
Braintree_TransparentRedirect::CREATE_CUSTOMER => 'Braintree_Customer',
Braintree_TransparentRedirect::UPDATE_CUSTOMER => 'Braintree_Customer',
Braintree_TransparentRedirect::CREATE_PAYMENT_METHOD => 'Braintree_CreditCard',
Braintree_TransparentRedirect::UPDATE_PAYMENT_METHOD => 'Braintree_CreditCard',
);
return call_user_func(array(
$confirmationKlasses[$params["kind"]],
'_doCreate',
), '/transparent_redirect_requests/' . $params['id'] . '/confirm', array());
}