File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -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- ]);
118+ ])-> __toString () ;
119119 }
120120
121121 protected function formParamsWithoutToken (): array
@@ -328,8 +328,10 @@ public function getGatewayReferenceId(): string
328328 */
329329 protected function getWSDL ($ type = null ): string
330330 {
331+
332+ $ type = $ type !== null ? strtoupper ($ type ) : null ;
331333 if (config ('larapay.mode ' ) == 'production ' ) {
332- switch (strtoupper ( $ type) ) {
334+ switch ($ type ) {
333335 case 'TOKEN ' :
334336 return $ this ->tokenWSDL ;
335337 break ;
@@ -338,7 +340,7 @@ protected function getWSDL($type = null): string
338340 break ;
339341 }
340342 } else {
341- switch (strtoupper ( $ type) ) {
343+ switch ($ type ) {
342344 case 'TOKEN ' :
343345 return $ this ->testTokenWSDL ;
344346 break ;
You can’t perform that action at this time.
0 commit comments