Skip to content

Commit efcaf40

Browse files
author
adrianbarbos
committed
Added cancel url config option
1 parent 8fc5398 commit efcaf40

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

src/DataTrait.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ protected function initData() {
1111
'details' => '',
1212
'confirmUrl' => config('mobilpay.confirm_url'),
1313
'returnUrl' => config('mobilpay.return_url'),
14+
'cancelUrl' => config('mobilpay.cancel_url'),
1415
'testMode' => config('mobilpay.testMode'),
1516
'params' => []
1617
];
@@ -76,6 +77,16 @@ public function setReturnUrl($value) {
7677
return $this;
7778
}
7879

80+
/**
81+
* @param $value string
82+
* @return $this
83+
*/
84+
public function setCancelUrl($value) {
85+
$this->data['cancelUrl'] = $value;
86+
87+
return $this;
88+
}
89+
7990
/**
8091
* @param $value boolean
8192
* @return $this

src/config/mobilpay.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
'confirm_url' => '',
1616

17+
'cancel_url' => '',
18+
1719
'return_url' => ''
1820

1921
];

0 commit comments

Comments
 (0)