1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Omnipay\Yoomoney\Message; |
4
|
|
|
|
5
|
|
|
use Omnipay\Common\Message\AbstractResponse; |
6
|
|
|
use Omnipay\Common\Message\RedirectResponseInterface; |
7
|
|
|
|
8
|
|
|
class CompletePurchaseResponse extends AbstractResponse implements RedirectResponseInterface |
9
|
|
|
{ |
10
|
|
|
|
11
|
|
|
public function isSuccessful() |
12
|
|
|
{ |
13
|
|
|
return true; |
14
|
|
|
} |
15
|
|
|
|
16
|
|
|
public function getLabel() |
17
|
|
|
{ |
18
|
|
|
return $this->getTransactionId(); |
19
|
|
|
} |
20
|
|
|
|
21
|
|
|
public function getAccount() |
22
|
|
|
{ |
23
|
|
|
return $this->getTransactionId(); |
24
|
|
|
} |
25
|
|
|
|
26
|
|
|
public function getTransactionId() |
27
|
|
|
{ |
28
|
|
|
return $this->data['label']; |
29
|
|
|
} |
30
|
|
|
|
31
|
|
|
public function getTransactionReference() |
32
|
|
|
{ |
33
|
|
|
return $this->data['operation_id']; |
34
|
|
|
} |
35
|
|
|
|
36
|
|
|
public function getAmount() |
37
|
|
|
{ |
38
|
|
|
return floatval($this->data['amount']); |
39
|
|
|
} |
40
|
|
|
|
41
|
|
|
public function getWithdrawAmount() |
42
|
|
|
{ |
43
|
|
|
return floatval($this->data['withdraw_amount']); |
44
|
|
|
} |
45
|
|
|
|
46
|
|
|
public function getCurrency() |
47
|
|
|
{ |
48
|
|
|
return $this->data['currency']; |
49
|
|
|
} |
50
|
|
|
|
51
|
|
|
public function getNotificationType() |
52
|
|
|
{ |
53
|
|
|
return $this->data['notification_type']; |
54
|
|
|
} |
55
|
|
|
|
56
|
|
|
public function getBillId() |
57
|
|
|
{ |
58
|
|
|
return $this->data['bill_id']; |
59
|
|
|
} |
60
|
|
|
|
61
|
|
|
public function getCodePro() |
62
|
|
|
{ |
63
|
|
|
return $this->data['codepro']; |
64
|
|
|
} |
65
|
|
|
|
66
|
|
|
public function getUnaccepted() |
67
|
|
|
{ |
68
|
|
|
return $this->data['unaccepted']; |
69
|
|
|
} |
70
|
|
|
|
71
|
|
|
public function getDatetime() |
72
|
|
|
{ |
73
|
|
|
return $this->data['datetime']; |
74
|
|
|
} |
75
|
|
|
|
76
|
|
|
public function getSender() |
77
|
|
|
{ |
78
|
|
|
return $this->data['sender']; |
79
|
|
|
} |
80
|
|
|
|
81
|
|
|
public function getSha1Hash() |
82
|
|
|
{ |
83
|
|
|
return $this->data['sha1_hash']; |
84
|
|
|
} |
85
|
|
|
|
86
|
|
|
public function getOperationLabel() |
87
|
|
|
{ |
88
|
|
|
return $this->data['operation_label']; |
89
|
|
|
} |
90
|
|
|
|
91
|
|
|
} |
92
|
|
|
|