예제 #1
0
 public function test_ClientTokenAuthorizesRequest()
 {
     $clientToken = Test\Helper::decodedClientToken();
     $authorizationFingerprint = json_decode($clientToken)->authorizationFingerprint;
     $http = new HttpClientApi(Braintree\Configuration::$global);
     $response = $http->get_cards(array("authorization_fingerprint" => $authorizationFingerprint, "shared_customer_identifier" => "fake_identifier", "shared_customer_identifier_type" => "testing"));
     $this->assertEquals(200, $response["status"]);
 }