Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
C
commerce_winbank_redirect
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
commerce_winbank_redirect
Commits
deb6afc7
Commit
deb6afc7
authored
Apr 15, 2019
by
GiorgosK
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mock paycenter.php gets action domain automatically from referrer
parent
c8353246
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
mock/paycenter.php
mock/paycenter.php
+6
-1
No files found.
mock/paycenter.php
View file @
deb6afc7
...
...
@@ -3,6 +3,11 @@
/**
* @file
*/
$scheme
=
parse_url
(
$_SERVER
[
'HTTP_REFERER'
],
PHP_URL_SCHEME
);
$referrer
=
parse_url
(
$_SERVER
[
'HTTP_REFERER'
],
PHP_URL_HOST
);
$domain
=
$scheme
.
"://"
.
$referrer
;
?>
<!DOCTYPE html>
...
...
@@ -24,7 +29,7 @@ foreach ($_REQUEST as $key => $value) {
</div>
<h1>
Will Send
</h1>
<form
action=
"
http://drukick.test
/commerce_winbank_redirect/callback"
method=
"post"
>
<form
action=
"
<?php
echo
$domain
?>
/commerce_winbank_redirect/callback"
method=
"post"
>
SupportReferenceID:
<input
type=
"text"
name=
"SupportReferenceID"
value=
"1001"
><br/>
ResultCode:
<select
name=
"ResultCode"
id=
""
>
<option
selected=
"selected"
value=
"0"
>
0 Good
</option>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment