Файловый менеджер - Редактировать - /var/www/html/libraries/omnipay3/vendor/omnipay/eway/src/Message/RapidCreateCardRequest.php
Ðазад
<?php /** * eWAY Rapid Shared Page Create Card Request */ namespace Omnipay\Eway\Message; /** * eWAY Rapid Shared Page Create Card Request * * Creates a payment URL using eWAY's Responsive Shared Page * * @link https://eway.io/api-v3/#responsive-shared-page */ class RapidCreateCardRequest extends RapidPurchaseRequest { public function getData() { $this->validate('returnUrl'); $data = $this->getBaseData(); $data['TransactionType'] = 'Purchase'; $data['RedirectUrl'] = $this->getReturnUrl(); // Shared page parameters (optional) $data['CancelUrl'] = $this->getCancelUrl(); $data['Payment'] = array(); if ($this->getAction() === 'Purchase') { $data['Payment']['TotalAmount'] = (int) $this->getAmountInteger(); $data['Payment']['InvoiceNumber'] = $this->getTransactionId(); $data['Payment']['InvoiceDescription'] = $this->getDescription(); $data['Payment']['CurrencyCode'] = $this->getCurrency(); $data['Payment']['InvoiceReference'] = $this->getInvoiceReference(); $data['Method'] = 'TokenPayment'; } else { $data['Method'] = 'CreateTokenCustomer'; $data['Payment']['TotalAmount'] = 0; } return $data; } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка