Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- error_reporting(E_ALL);
- header("Content-Type: text/html; charset=utf-8");
- $username = 'логин';
- $password = 'пароль';
- $rub = 643;
- $ammount = 100;
- $returnUrl = "success.html";
- $API_URI = 'https://securepayments.sberbank.ru/payment/rest/';
- $API_URI_TEST = 'https://3dsec.sberbank.ru/payment/rest/';
- $orderId = 'GTE567';
- $request = $API_URI_TEST.'/register.do?amount='.$ammount.'¤cy='.$rub.'&language=ru&orderNumber='.$orderId.'&password='.$password.'&returnUrl='.$returnUrl.'userName='.$username.'&pageView=DESKTOP&merchantLogin=merch_child';
- $response = file_get_contents($request);
- $res = json_decode($response);
- echo "<pre>";
- print_r($res);
- echo "</pre>";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement