YandexMoney\ExternalPayment::getInstanceId PHP Method

getInstanceId() public static method

Registers an instance of an application
See also: http://api.yandex.com/money/doc/dg/reference/instance-id.xml
See also: 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.
return response object
    public static function getInstanceId($client_id)
    {
        return self::sendRequest("/api/instance-id", array("client_id" => $client_id));
    }

Usage Example

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