@@ -85,16 +85,16 @@ discard block |
||
85 | 85 | protected function getNotificationTypeToHandlerMap() |
86 | 86 | { |
87 | 87 | return [ |
88 | - AmazonPayConfig::IPN_REQUEST_TYPE_PAYMENT_AUTHORIZE => function (AmazonpayIpnPaymentRequestTransfer $ipnRequest) { |
|
88 | + AmazonPayConfig::IPN_REQUEST_TYPE_PAYMENT_AUTHORIZE => function(AmazonpayIpnPaymentRequestTransfer $ipnRequest) { |
|
89 | 89 | return $this->getIpnPaymentAuthorizeHandler($ipnRequest); |
90 | 90 | }, |
91 | - AmazonPayConfig::IPN_REQUEST_TYPE_PAYMENT_CAPTURE => function (AmazonpayIpnPaymentRequestTransfer $ipnRequest) { |
|
91 | + AmazonPayConfig::IPN_REQUEST_TYPE_PAYMENT_CAPTURE => function(AmazonpayIpnPaymentRequestTransfer $ipnRequest) { |
|
92 | 92 | return $this->getIpnPaymentCaptureHandler($ipnRequest); |
93 | 93 | }, |
94 | - AmazonPayConfig::IPN_REQUEST_TYPE_PAYMENT_REFUND => function (AmazonpayIpnPaymentRequestTransfer $ipnRequest) { |
|
94 | + AmazonPayConfig::IPN_REQUEST_TYPE_PAYMENT_REFUND => function(AmazonpayIpnPaymentRequestTransfer $ipnRequest) { |
|
95 | 95 | return $this->getIpnPaymentRefundHandler($ipnRequest); |
96 | 96 | }, |
97 | - AmazonPayConfig::IPN_REQUEST_TYPE_ORDER_REFERENCE_NOTIFICATION => function (AmazonpayIpnPaymentRequestTransfer $ipnRequest) { |
|
97 | + AmazonPayConfig::IPN_REQUEST_TYPE_ORDER_REFERENCE_NOTIFICATION => function(AmazonpayIpnPaymentRequestTransfer $ipnRequest) { |
|
98 | 98 | return $this->getIpnOrderReferenceHandler($ipnRequest); |
99 | 99 | }, |
100 | 100 | ]; |
@@ -106,25 +106,25 @@ discard block |
||
106 | 106 | protected function getAuthorizeHandlerMap() |
107 | 107 | { |
108 | 108 | return [ |
109 | - AmazonPayConfig::STATUS_TRANSACTION_TIMED_OUT => function () { |
|
109 | + AmazonPayConfig::STATUS_TRANSACTION_TIMED_OUT => function() { |
|
110 | 110 | return $this->createIpnPaymentAuthorizeSuspendedHandler(); |
111 | 111 | }, |
112 | - AmazonPayConfig::STATUS_SUSPENDED => function () { |
|
112 | + AmazonPayConfig::STATUS_SUSPENDED => function() { |
|
113 | 113 | return $this->createIpnPaymentAuthorizeSuspendedHandler(); |
114 | 114 | }, |
115 | - AmazonPayConfig::STATUS_PAYMENT_METHOD_INVALID => function () { |
|
115 | + AmazonPayConfig::STATUS_PAYMENT_METHOD_INVALID => function() { |
|
116 | 116 | return $this->createIpnPaymentAuthorizeSuspendedHandler(); |
117 | 117 | }, |
118 | - AmazonPayConfig::STATUS_DECLINED => function () { |
|
118 | + AmazonPayConfig::STATUS_DECLINED => function() { |
|
119 | 119 | return $this->createIpnPaymentAuthorizeDeclineHandler(); |
120 | 120 | }, |
121 | - AmazonPayConfig::STATUS_OPEN => function () { |
|
121 | + AmazonPayConfig::STATUS_OPEN => function() { |
|
122 | 122 | return $this->createIpnPaymentAuthorizeOpenHandler(); |
123 | 123 | }, |
124 | - AmazonPayConfig::STATUS_CLOSED => function () { |
|
124 | + AmazonPayConfig::STATUS_CLOSED => function() { |
|
125 | 125 | return $this->createIpnPaymentAuthorizeClosedHandler(); |
126 | 126 | }, |
127 | - AmazonPayConfig::STATUS_EXPIRED => function () { |
|
127 | + AmazonPayConfig::STATUS_EXPIRED => function() { |
|
128 | 128 | return $this->createIpnPaymentAuthorizeClosedHandler(); |
129 | 129 | }, |
130 | 130 | ]; |
@@ -196,13 +196,13 @@ discard block |
||
196 | 196 | protected function getCaptureHandlerMap() |
197 | 197 | { |
198 | 198 | return [ |
199 | - AmazonPayConfig::STATUS_DECLINED => function () { |
|
199 | + AmazonPayConfig::STATUS_DECLINED => function() { |
|
200 | 200 | return $this->createIpnPaymentCaptureDeclineHandler(); |
201 | 201 | }, |
202 | - AmazonPayConfig::STATUS_COMPLETED => function () { |
|
202 | + AmazonPayConfig::STATUS_COMPLETED => function() { |
|
203 | 203 | return $this->createIpnPaymentCaptureCompletedHandler(); |
204 | 204 | }, |
205 | - AmazonPayConfig::STATUS_CLOSED => function () { |
|
205 | + AmazonPayConfig::STATUS_CLOSED => function() { |
|
206 | 206 | return $this->createIpnEmptyHandler(); |
207 | 207 | }, |
208 | 208 | ]; |
@@ -258,10 +258,10 @@ discard block |
||
258 | 258 | protected function getRefundHandlerMap() |
259 | 259 | { |
260 | 260 | return [ |
261 | - AmazonPayConfig::STATUS_DECLINED => function () { |
|
261 | + AmazonPayConfig::STATUS_DECLINED => function() { |
|
262 | 262 | return $this->createIpnPaymentRefundDeclineHandler(); |
263 | 263 | }, |
264 | - AmazonPayConfig::STATUS_COMPLETED => function () { |
|
264 | + AmazonPayConfig::STATUS_COMPLETED => function() { |
|
265 | 265 | return $this->createIpnPaymentRefundCompletedHandler(); |
266 | 266 | }, |
267 | 267 | ]; |
@@ -310,25 +310,25 @@ discard block |
||
310 | 310 | protected function getOrderReferenceHandlerMap() |
311 | 311 | { |
312 | 312 | return [ |
313 | - AmazonPayConfig::STATUS_OPEN => function () { |
|
313 | + AmazonPayConfig::STATUS_OPEN => function() { |
|
314 | 314 | return $this->createIpnOrderReferenceOpenHandler(); |
315 | 315 | }, |
316 | - AmazonPayConfig::STATUS_AMAZON_CLOSED => function () { |
|
316 | + AmazonPayConfig::STATUS_AMAZON_CLOSED => function() { |
|
317 | 317 | return $this->createIpnOrderReferenceClosedHandler(); |
318 | 318 | }, |
319 | - AmazonPayConfig::STATUS_EXPIRED => function () { |
|
319 | + AmazonPayConfig::STATUS_EXPIRED => function() { |
|
320 | 320 | return $this->createIpnEmptyHandler(); |
321 | 321 | }, |
322 | - AmazonPayConfig::STATUS_CLOSED => function () { |
|
322 | + AmazonPayConfig::STATUS_CLOSED => function() { |
|
323 | 323 | return $this->createIpnEmptyHandler(); |
324 | 324 | }, |
325 | - AmazonPayConfig::STATUS_PAYMENT_METHOD_INVALID => function () { |
|
325 | + AmazonPayConfig::STATUS_PAYMENT_METHOD_INVALID => function() { |
|
326 | 326 | return $this->createIpnOrderReferenceSuspendedHandler(); |
327 | 327 | }, |
328 | - AmazonPayConfig::STATUS_SUSPENDED => function () { |
|
328 | + AmazonPayConfig::STATUS_SUSPENDED => function() { |
|
329 | 329 | return $this->createIpnOrderReferenceSuspendedHandler(); |
330 | 330 | }, |
331 | - AmazonPayConfig::STATUS_CANCELLED => function () { |
|
331 | + AmazonPayConfig::STATUS_CANCELLED => function() { |
|
332 | 332 | return $this->createIpnOrderReferenceCancelledHandler(); |
333 | 333 | }, |
334 | 334 | ]; |