Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-payment
Gateway
Http
Transfer.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Payment\Gateway\Http
;
7
11
class
Transfer
implements
TransferInterface
12
{
16
const
AUTH_USERNAME
=
'username'
;
17
21
const
AUTH_PASSWORD
=
'password'
;
22
26
private
$clientConfig;
27
31
private
$headers;
32
36
private
$method;
37
41
private
$body;
42
46
private
$uri;
47
51
private
$encode;
52
56
private
$auth;
57
67
public
function
__construct
(
68
array $clientConfig,
69
array $headers,
70
$body,
71
array $auth,
72
$method,
73
$uri,
74
$encode
75
) {
76
$this->clientConfig = $clientConfig;
77
$this->headers = $headers;
78
$this->body = $body;
79
$this->auth = $auth;
80
$this->method = $method;
81
$this->uri = $uri;
82
$this->encode = $encode;
83
}
84
90
public
function
getClientConfig
()
91
{
92
return
$this->clientConfig;
93
}
94
100
public
function
getMethod
()
101
{
102
return
(
string
)$this->method;
103
}
104
110
public
function
getHeaders
()
111
{
112
return
$this->headers;
113
}
114
120
public
function
getBody
()
121
{
122
return
$this->body;
123
}
124
130
public
function
getUri
()
131
{
132
return
(
string
)$this->uri;
133
}
134
138
public
function
shouldEncode
()
139
{
140
return
$this->encode;
141
}
142
148
public
function
getAuthUsername
()
149
{
150
return
$this->auth[
self::AUTH_USERNAME
];
151
}
152
158
public
function
getAuthPassword
()
159
{
160
return
$this->auth[
self::AUTH_PASSWORD
];
161
}
162
}
Magento\Payment\Gateway\Http\Transfer\getAuthUsername
getAuthUsername()
Definition:
Transfer.php:148
Magento\Payment\Gateway\Http
Magento\Payment\Gateway\Http\Transfer\getUri
getUri()
Definition:
Transfer.php:130
Magento\Payment\Gateway\Http\Transfer\getMethod
getMethod()
Definition:
Transfer.php:100
Magento\Payment\Gateway\Http\Transfer\getClientConfig
getClientConfig()
Definition:
Transfer.php:90
Magento\Payment\Gateway\Http\Transfer\__construct
__construct(array $clientConfig, array $headers, $body, array $auth, $method, $uri, $encode)
Definition:
Transfer.php:67
Magento\Payment\Gateway\Http\Transfer
Definition:
Transfer.php:11
Magento\Payment\Gateway\Http\Transfer\getAuthPassword
getAuthPassword()
Definition:
Transfer.php:158
Magento\Payment\Gateway\Http\TransferInterface
Definition:
TransferInterface.php:14
Magento\Payment\Gateway\Http\Transfer\getHeaders
getHeaders()
Definition:
Transfer.php:110
Magento\Payment\Gateway\Http\Transfer\AUTH_PASSWORD
const AUTH_PASSWORD
Definition:
Transfer.php:21
Magento\Payment\Gateway\Http\Transfer\AUTH_USERNAME
const AUTH_USERNAME
Definition:
Transfer.php:16
Magento\Payment\Gateway\Http\Transfer\getBody
getBody()
Definition:
Transfer.php:120
Magento\Payment\Gateway\Http\Transfer\shouldEncode
shouldEncode()
Definition:
Transfer.php:138