@@ 35-46 (lines=12) @@ | ||
32 | } |
|
33 | ||
34 | /** @inheritdoc */ |
|
35 | public function toArray() |
|
36 | { |
|
37 | $array = parent::toArray(); |
|
38 | $array['capture'] = true; |
|
39 | ||
40 | if ($this->dueDate) { |
|
41 | $array['due_date'] = $this->dueDate->format(DATE_RFC3339); |
|
42 | } |
|
43 | ||
44 | $array['payment_details']['issuers'] = ['BCMC']; |
|
45 | return $array; |
|
46 | } |
|
47 | } |
|
48 |
@@ 40-51 (lines=12) @@ | ||
37 | } |
|
38 | ||
39 | /** @inheritdoc */ |
|
40 | public function toArray() |
|
41 | { |
|
42 | $array = parent::toArray(); |
|
43 | $array['capture'] = true; |
|
44 | ||
45 | if ($this->dueDate) { |
|
46 | $array['due_date'] = $this->dueDate->format(DATE_RFC3339); |
|
47 | } |
|
48 | ||
49 | $array['payment_details']['issuers'] = $this->issuers; |
|
50 | return $array; |
|
51 | } |
|
52 | } |
|
53 |