This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* --------- пример для best2pay --------- */ | |
$payment = new payPayment(); | |
$paycard_res = $payment->add( | |
array( | |
'amount' => $amount, // сумма | |
'fee' => $fee, // размер комиссии | |
'currency' => '643', // валюта | |
'reference' => $iddeal, // номер заказа | |
'description' => $iddeal, // описание заказа | |
'url'=> 'site_url.ru/success', // редирект после успешной оплаты |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$payment = new payPayment(); | |
$paycard_res = $payment->add( | |
array $query = Array() | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BFCatalog::HLaddElements( | |
1, | |
Array( | |
Array( | |
'UF_XML_ID' => 'Код_1', | |
'UF_NAME' => 'Название_1' | |
), | |
Array( | |
'UF_XML_ID' => 'Код_2', | |
'UF_NAME' => 'Название_2' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BFCatalog::HLaddElements( | |
int ID, | |
array arElements = Array(), | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$plist = BFPayment::getList(); | |
echo '<pre>'; | |
print_r($plist); | |
echo '</pre>'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BFPayment::getList(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$pay = 'ynd'; | |
$arInputs = array( | |
'sum' => 1000, | |
'customerNumber' => 1 | |
); | |
BFPayment::elementFormPay( | |
$pay, | |
$arInputs | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BFPayment::elementFormPay( | |
string pay, | |
array arInputs = Array(), | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$order = 1; | |
$summ = 1000 | |
$pay = 'ynd'; | |
BFPayment::showBtnPay( | |
$order, | |
$summ, | |
$pay | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BFPayment::showBtnPay( | |
string order, | |
int summ, | |
string pay | |
); |
NewerOlder