Skip to content

Commit

Permalink
Tool - Add checkConfirmUrlBrowser
Browse files Browse the repository at this point in the history
  • Loading branch information
yidas committed Sep 11, 2020
1 parent 2e63aae commit 2a439a6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 4 additions & 0 deletions tool/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,10 @@ function formSubmit(form) {
<option value="zh_CN">zh_CN</option>
</select>
</div>
<div class="form-check">
<input type="checkbox" class="form-check-input" id="inputCheckConfirmUrlBrowser" name="checkConfirmUrlBrowser" <?=!$config || (isset($config['checkConfirmUrlBrowser']) && $config['checkConfirmUrlBrowser']) ? 'checked' : ''?>>
<label class="form-check-label" for="inputCheckConfirmUrlBrowser">checkConfirmUrlBrowser: <code>true</code> <font color="#cccccc"><i>(Online Only)</i></font></label>
</div>
<div class="form-check">
<input type="checkbox" class="form-check-input" id="inputPaymentUrlApp" name="paymenUrlApp" <?=isset($config['paymenUrlApp']) ? 'checked' : ''?>>
<label class="form-check-label" for="inputPaymentUrlApp">paymentUrl: <code>app</code> <font color="#cccccc"><i>(Online Only)</i></font></label>
Expand Down
9 changes: 4 additions & 5 deletions tool/request.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@
"confirmUrl" => "{$baseUrl}/confirm.php",
"cancelUrl" => "{$baseUrl}/index.php",
],
"options" => [
"display" => [
"checkConfirmUrlBrowser" => true,
],
],
];

// Capture: false
Expand Down Expand Up @@ -82,6 +77,10 @@
if ($input['locale']) {
$orderParams['options']['display']['locale'] = $input['locale'];
}
// checkConfirmUrlBrowser
if ($input['checkConfirmUrlBrowser']) {
$orderParams['options']['display']['checkConfirmUrlBrowser'] = true;
}
// PaymentUrl type
$paymentUrlType = (isset($input['paymenUrlApp'])) ? 'app' : 'web';
// PromotionRestriction
Expand Down

0 comments on commit 2a439a6

Please sign in to comment.