Skip to content

Commit 1e8b925

Browse files
committed
fixed bug in route parameter which included dash
1 parent 4a09bf9 commit 1e8b925

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Factory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function verifyTransaction(Request $request, array $adapterConfig = [])
7373
{
7474
//get gateway and transaction id from request
7575
$gateway = $request->input('gateway');
76-
$transactionId = $request->input('transaction-id');
76+
$transactionId = $request->input('transaction_id');
7777

7878
//log all incoming data for debug request
7979
XLog::debug('request: ', $request->all());

src/Models/LarapayTransaction.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,13 @@ public function generateForm($autoSubmit = false, $callback = null, $adapterConf
9797

9898
$callbackRoute = route(config("larapay.payment_callback"), [
9999
'gateway' => $this->gate_name,
100-
'transaction-id' => $this->id,
100+
'transaction_id' => $this->id,
101101
]);
102102

103103
if ($callback != null) {
104104
$callbackRoute = route($callback, [
105105
'gateway' => $this->gate_name,
106-
'transaction-id' => $this->id,
106+
'transaction_id' => $this->id,
107107
]);
108108
}
109109

@@ -137,13 +137,13 @@ public function formParams($callback = null, $adapterConfig = []): array
137137

138138
$callbackRoute = route(config("larapay.payment_callback"), [
139139
'gateway' => $this->gate_name,
140-
'transaction-id' => $this->id,
140+
'transaction_id' => $this->id,
141141
]);
142142

143143
if ($callback != null) {
144144
$callbackRoute = route($callback, [
145145
'gateway' => $this->gate_name,
146-
'transaction-id' => $this->id,
146+
'transaction_id' => $this->id,
147147
]);
148148
}
149149

0 commit comments

Comments
 (0)