Braintree\Customer::createCustomerUrl PHP Метод

createCustomerUrl() публичный статический Метод

Устаревший: since version 2.3.0
public static createCustomerUrl ( ) : string
Результат string
    public static function createCustomerUrl()
    {
        return Configuration::gateway()->customer()->createCustomerUrl();
    }

Usage Example

 public function testParseAndValidateQueryString_throwsAuthenticationErrorIfBadCredentials()
 {
     Test\Helper::suppressDeprecationWarnings();
     $privateKey = Braintree\Configuration::privateKey();
     Braintree\Configuration::privateKey('incorrect');
     try {
         $trData = Braintree\TransparentRedirect::createCustomerData(array("redirectUrl" => "http://www.example.com"));
         $queryString = Test\Helper::submitTrRequest(Braintree\Customer::createCustomerUrl(), array(), $trData);
         $this->setExpectedException('Braintree\\Exception\\Authentication');
         Braintree\Customer::createFromTransparentRedirect($queryString);
     } catch (Braintree\Exception $e) {
     }
     $privateKey = Braintree\Configuration::privateKey($privateKey);
     if (isset($e)) {
         throw $e;
     }
 }
All Usage Examples Of Braintree\Customer::createCustomerUrl