Файловый менеджер - Редактировать - /var/www/html/libraries/omnipay/vendor/omnipay/toyyibpay/src/Message/AbstractRequest.php
Ðазад
<?php namespace Omnipay\ToyyibPay\Message; use Omnipay\Common\Message\AbstractRequest as BaseAbstractRequest; abstract class AbstractRequest extends BaseAbstractRequest { protected $productionEndpoint = 'https://toyyibpay.com/'; protected $sandboxEndpoint = 'https://toyyibpay.com/'; public function getUserSecretKey() { return $this->getParameter('userSecretKey'); } public function setUserSecretKey($value) { return $this->setParameter('userSecretKey', $value); } public function getCategoryCode() { return $this->getParameter('categoryCode'); } public function setCategoryCode($value) { return $this->setParameter('categoryCode', $value); } public function getBillName() { return $this->getParameter('billName'); } public function setBillName($value) { return $this->setParameter('billName', $value); } public function getBillDescription() { return $this->getParameter('billDescription'); } public function setBillDescription($value) { return $this->setParameter('billDescription', $value); } public function getBillPriceSetting() { return $this->getParameter('billPriceSetting'); } public function setBillPriceSetting($value) { return $this->setParameter('billPriceSetting', $value); } public function getBillPayorInfo() { return $this->getParameter('billPayorInfo'); } public function setBillPayorInfo($value) { return $this->setParameter('billPayorInfo', $value); } public function getBillAmount() { return $this->getParameter('billAmount')*100; } public function setBillAmount($value) { return $this->setParameter('billAmount', $value); } public function getBillReturnUrl() { return $this->getParameter('billReturnUrl'); } public function setBillReturnUrl($value) { return $this->setParameter('billReturnUrl', $value); } public function getBillCallbackUrl() { return $this->getParameter('billCallbackUrl'); } public function setBillCallbackUrl($value) { return $this->setParameter('billCallbackUrl', $value); } public function getBillExternalReferenceNo() { return $this->getParameter('billExternalReferenceNo'); } public function setBillExternalReferenceNo($value) { return $this->setParameter('billExternalReferenceNo', $value); } public function getBillTo() { return $this->getParameter('billTo'); } public function setBillTo($value) { return $this->setParameter('billTo', $value); } public function getBillEmail() { return $this->getParameter('billEmail'); } public function setBillEmail($value) { return $this->setParameter('billEmail', $value); } public function getBillPhone() { return $this->getParameter('billPhone'); } public function setBillPhone($value) { return $this->setParameter('billPhone', $value); } public function getBillSplitPayment() { return $this->getParameter('billSplitPayment'); } public function setBillSplitPayment($value) { return $this->setParameter('billSplitPayment', $value); } public function getBillSplitPaymentArgs() { return $this->getParameter('billSplitPaymentArgs'); } public function setBillSplitPaymentArgs($value) { return $this->setParameter('billSplitPaymentArgs', $value); } public function getBillPaymentChannel() { return $this->getParameter('billPaymentChannel'); } public function setBillPaymentChannel($value) { return $this->setParameter('billPaymentChannel', $value); } public function getBillDisplayMerchant() { return $this->getParameter('billDisplayMerchant'); } public function setBillDisplayMerchant($value) { return $this->setParameter('billDisplayMerchant', $value); } public function getBillContentEmail() { return $this->getParameter('billContentEmail'); } public function setBillContentEmail($value) { return $this->setParameter('billContentEmail', $value); } public function getBillAdditionalField() { return $this->getParameter('billAdditionalField'); } public function setBillAdditionalField($value) { return $this->setParameter('billAdditionalField', json_encode($value)); } public function getBillChargeToCustomer() { return $this->getParameter('billChargeToCustomer'); } public function setBillChargeToCustomer($value) { return $this->setParameter('billChargeToCustomer', $value); } public function getBillCode() { return $this->getParameter('billCode'); } public function setBillCode($value) { return $this->setParameter('billCode', $value); } public function getBillpaymentStatus() { return $this->getParameter('billpaymentStatus'); } public function setBillpaymentStatus($value) { return $this->setParameter('billpaymentStatus', $value); } public function sendRequest($data) { $curl = curl_init(); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_URL, $this->getEndpoint() . $data['apiEndpoint']); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_POSTFIELDS, $data); $result = curl_exec($curl); curl_close($curl); $response = json_decode($result, true); return $response; } public function getHttpMethod() { return 'POST'; } public function getEndpoint() { return $this->getTestMode() ? $this->sandboxEndpoint : $this->productionEndpoint; } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка