YandexMoney\ExternalPayment::getInstanceId PHP 메소드

getInstanceId() 공개 정적인 메소드

Registers an instance of an application
또한 보기: http://api.yandex.com/money/doc/dg/reference/instance-id.xml
또한 보기: https://tech.yandex.ru/money/doc/dg/reference/instance-id-docpage/
public static getInstanceId ( string $client_id ) : response
$client_id string The client_id that was assigned to the application.
리턴 response object
    public static function getInstanceId($client_id)
    {
        return self::sendRequest("/api/instance-id", array("client_id" => $client_id));
    }

Usage Example

예제 #1
0
 private function getInstanceId()
 {
     $response = ExternalPayment::getInstanceId($this->params['client_id']);
     if ($response->status === 'success') {
         $this->instance_id = $response->instance_id;
     } else {
         throw new \Exception($response->error_message);
     }
 }
All Usage Examples Of YandexMoney\ExternalPayment::getInstanceId