$request = Request::factory('http://money.yandex.ru/quickpay/confirm.xml')
->method('POST')
->post(array(
'receiver' => '41001299****',
'quickpay-form' => 'shop',
'targets' => 'Интернет-магазин *****',
'sum' => '990',
'successURL' => 'http://site.net/result'
))
->headers('Content-Type', 'application/x-www-form-urlencoded');
$response = $request->execute();
echo $response->body();
$result = Request::factory('http://money.yandex.ru/quickpay/confirm.xml')
->query(array(
'receiver' => '41001299****',
'quickpay-form' => 'shop',
'targets' => 'Интернет-магазин *****',
'sum' => '990',
'sum' => '990',
'successURL' => 'http://site.net/result',
))
->headers('Content-Type', 'application/x-www-form-urlencoded')
->method(HTTP_Request::POST)
->execute();
die($result->body());
$params = array(
'receiver' => '41001299****',
'quickpay-form' => 'shop',
'targets' => 'Интернет-магазин *****',
'sum' => '990',
'sum' => '990',
'successURL' => 'http://site.net/result',
);
$uri = 'http://money.yandex.ru/quickpay/confirm.xml' . '?' . http_build_query($params);
$result = Request::factory($uri)
->method(HTTP_Request::POST)
->execute()
->headers('Content-Type', 'application/x-www-form-urlencoded');
die($result->body());