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