本文整理汇总了PHP中Braintree_TransparentRedirect::parseAndValidateQueryString方法的典型用法代码示例。如果您正苦于以下问题:PHP Braintree_TransparentRedirect::parseAndValidateQueryString方法的具体用法?PHP Braintree_TransparentRedirect::parseAndValidateQueryString怎么用?PHP Braintree_TransparentRedirect::parseAndValidateQueryString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Braintree_TransparentRedirect
的用法示例。
在下文中一共展示了Braintree_TransparentRedirect::parseAndValidateQueryString方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: confirm
public function confirm($queryString)
{
$params = Braintree_TransparentRedirect::parseAndValidateQueryString($queryString);
$confirmationKlasses = array(Braintree_TransparentRedirect::CREATE_TRANSACTION => 'Braintree_TransactionGateway', Braintree_TransparentRedirect::CREATE_CUSTOMER => 'Braintree_CustomerGateway', Braintree_TransparentRedirect::UPDATE_CUSTOMER => 'Braintree_CustomerGateway', Braintree_TransparentRedirect::CREATE_PAYMENT_METHOD => 'Braintree_CreditCardGateway', Braintree_TransparentRedirect::UPDATE_PAYMENT_METHOD => 'Braintree_CreditCardGateway');
$confirmationGateway = new $confirmationKlasses[$params["kind"]]($this->_gateway);
return $confirmationGateway->_doCreate('/transparent_redirect_requests/' . $params['id'] . '/confirm', array());
}
示例2: createFromTransparentRedirect
/**
*
* @access public
* @param array $attribs
* @return object
*/
public static function createFromTransparentRedirect($queryString)
{
trigger_error("DEPRECATED: Please use Braintree_TransparentRedirectRequest::confirm", E_USER_NOTICE);
$params = Braintree_TransparentRedirect::parseAndValidateQueryString($queryString);
return self::_doCreate('/transactions/all/confirm_transparent_redirect_request', array('id' => $params['id']));
}
示例3: updateFromTransparentRedirect
/**
* update a customer from a TransparentRedirect operation
*
* @access public
* @param array $attribs
* @return object
*/
public function updateFromTransparentRedirect($queryString)
{
trigger_error("DEPRECATED: Please use Braintree_TransparentRedirectRequest::confirm", E_USER_NOTICE);
$params = Braintree_TransparentRedirect::parseAndValidateQueryString($queryString);
return $this->_doUpdate('post', '/customers/all/confirm_transparent_redirect_request', array('id' => $params['id']));
}
示例4: confirm
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());
}