Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $userName = "name";
- $password = "pass";
- $orderNumber = md5(uniqid(rand(),1));
- $amount = 99000;
- $returnUrl = "http://site.com/?succes";
- $curl = curl_init();
- curl_setopt($curl, CURLOPT_URL, 'https://3dsec.sberbank.ru/payment/rest/register.do');
- curl_setopt($curl, CURLOPT_RETURNTRANSFER,true);
- curl_setopt($curl, CURLOPT_POST, true);
- curl_setopt($curl, CURLOPT_POSTFIELDS, 'amount='.$amount.'¤cy=810&language=ru&orderNumber='.$orderNumber.'&returnUrl='.$returnUrl.'&jsonParams={"orderNumber":'.$orderNumber.'}&pageView=DESKTOP&expirationDate
- =2014-09-08T14:14:14&merchantLogin=merch_child');
- $out = curl_exec($curl);
- echo $out;
- curl_close($curl);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement