Skip to content

Commit d601b94

Browse files
committed
fixed bug #38
1 parent b8449be commit d601b94

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Adapter/Saman.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ public function generateForm(): string
8181
XLog::debug(__METHOD__);
8282

8383
if ($this->with_token) {
84-
return $this->generateFormWithToken();
84+
return $this->generateFormWithToken()->__toString();
8585
} else {
86-
return $this->generateFormWithoutToken(); // default
86+
return $this->generateFormWithoutToken()->__toString(); // default
8787
}
8888
}
8989

@@ -96,7 +96,7 @@ public function formParams(): array
9696
}
9797
}
9898

99-
protected function generateFormWithoutToken(): string
99+
protected function generateFormWithoutToken(): \Illuminate\View\View
100100
{
101101
XLog::debug(__METHOD__, $this->getParameters());
102102

@@ -115,7 +115,7 @@ protected function generateFormWithoutToken(): string
115115
'redirectUrl' => $this->redirect_url,
116116
'submitLabel' => !empty($this->submit_label) ? $this->submit_label : trans("larapay::larapay.goto_gate"),
117117
'autoSubmit' => boolval($this->auto_submit),
118-
])->__toString();
118+
]);
119119
}
120120

121121
protected function formParamsWithoutToken(): array
@@ -138,7 +138,7 @@ protected function formParamsWithoutToken(): array
138138
];
139139
}
140140

141-
protected function generateFormWithToken(): string
141+
protected function generateFormWithToken(): \Illuminate\View\View
142142
{
143143
XLog::debug(__METHOD__, $this->getParameters());
144144
$this->checkRequiredParameters([

0 commit comments

Comments
 (0)