49 lines
1.2 KiB
PHP
49 lines
1.2 KiB
PHP
<?php
|
||
|
||
include 'payment.class.php';
|
||
|
||
$data = array(
|
||
"marketPlace" => 47607,//демо
|
||
// "marketPlace" => 402938079, //прод
|
||
"secretKey" => '111111',//демо
|
||
// "secretKey" => 'ue4z4L00IREoygx52RQH28l62dN6V685',
|
||
// "secretKey" => '63f779a3b37db5d8e5ddbde00e4ef66d7354cb5572bc3f2f71ebfba14a2d82bc',
|
||
"orderId" => 3204,
|
||
// "request_url"=>"https://oos.pscb.ru/cabinet/payments", //прод
|
||
"request_url"=>"https://oos-stage.pscb.ru/cabinet/payments",//демо
|
||
"sbpRedirectUrl"=>"ht111234",
|
||
// "hold" => true,
|
||
|
||
);
|
||
|
||
$products = array(
|
||
array(
|
||
"object" => 'Товар1',
|
||
"quantity" => 1,
|
||
"price" => 2,
|
||
"amount" => 2
|
||
),
|
||
array(
|
||
"object" => 'Товар2',
|
||
"quantity" => 1,
|
||
"price" => 2,
|
||
"amount" => 2
|
||
),
|
||
);
|
||
|
||
$M = new SetWay();
|
||
$M->SetLogsAndEvensWay('logs','events');
|
||
|
||
$PayForm = new ClassPay($data);
|
||
$PayForm->CreatePayment($products);
|
||
|
||
// $ConfirmPay = new ClassConfirm($data);
|
||
// $ConfirmPay->CreatePayment($products);
|
||
|
||
// $RefundPay = new ClassRefund($data);
|
||
// $RefundPay->CreatePayment($products);
|
||
|
||
// $InvoicingPay = new ClassInvoicing($data);
|
||
// $InvoicingPay->CreatePayment($products);
|
||
|
||
?>
|