Skip to content

Commit

Permalink
delete all 'fullWebPayment' old elements
Browse files Browse the repository at this point in the history
  • Loading branch information
PaylineGitHub committed Dec 27, 2018
1 parent 4d3d54f commit 2d497fb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion examples/fieldset/buyer.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function clearSampleBuyer(){
<input type="text" name="buyerFirstName" id="buyerFirstName" value="<?php echo $_SESSION['buyerFirstName'] ?>" />
<span class="help">(required unique wallet ID if is set)</span>
</div>
<div class="row" <?php if($displayedPage == 'widgetPayment') echo "style='display:none'";?>>
<div class="row">
<label for="buyerEmail">email</label>
<input type="text" name="buyerEmail" id="buyerEmail" value="<?php echo $_SESSION['buyerEmail'] ?>" />
</div>
Expand Down
20 changes: 10 additions & 10 deletions examples/fieldset/payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
<div class="row" <?php if($displayedPage == 'widgetPayment') echo "style='display:none'";?>>
<label for="paymentMode">Payment mode</label>
<select name="paymentMode" id="paymentMode">
<option value="CPT" <?php if(in_array($displayedPage, array('fullWebPayment','doAuthorization','doImmediateWalletPayment','doScheduledWalletPayment')) && strcmp ("CPT",$_SESSION['PAYMENT_MODE']) == 0) echo "selected"; ?>>CPT (Comptant)</option>
<option value="DIF" <?php if(in_array($displayedPage, array('fullWebPayment','doAuthorization','doImmediateWalletPayment','doScheduledWalletPayment')) && strcmp ("DIF",$_SESSION['PAYMENT_MODE']) == 0) echo "selected"; ?>>DIF (Diff&#233;r&#233;)</option>
<option value="NX" <?php if(in_array($displayedPage, array('fullWebPayment','doScheduledWalletPayment')) && strcmp ("NX",$_SESSION['PAYMENT_MODE']) == 0) echo "selected"; ?>>NX (N fois)</option>
<option value="REC" <?php if((in_array($displayedPage, array('fullWebPayment')) && strcmp ("REC",$_SESSION['PAYMENT_MODE']) == 0) || $displayedPage == 'doRecurrentWalletPayment') echo "selected"; ?>>REC (R&#233;current)</option>
<option value="CPT" <?php if(in_array($displayedPage, array('doWebPayment','doAuthorization','doImmediateWalletPayment','doScheduledWalletPayment')) && strcmp ("CPT",$_SESSION['PAYMENT_MODE']) == 0) echo "selected"; ?>>CPT (Comptant)</option>
<option value="DIF" <?php if(in_array($displayedPage, array('doWebPayment','doAuthorization','doImmediateWalletPayment','doScheduledWalletPayment')) && strcmp ("DIF",$_SESSION['PAYMENT_MODE']) == 0) echo "selected"; ?>>DIF (Diff&#233;r&#233;)</option>
<option value="NX" <?php if(in_array($displayedPage, array('doWebPayment','doScheduledWalletPayment')) && strcmp ("NX",$_SESSION['PAYMENT_MODE']) == 0) echo "selected"; ?>>NX (N fois)</option>
<option value="REC" <?php if((in_array($displayedPage, array('doWebPayment')) && strcmp ("REC",$_SESSION['PAYMENT_MODE']) == 0) || $displayedPage == 'doRecurrentWalletPayment') echo "selected"; ?>>REC (R&#233;current)</option>
<option value="001">001 (PASS Comptant)</option>
<option value="002">002 (PASS Crédit)</option>
<option value="003">003 (PASS Epargne)</option>
Expand All @@ -26,13 +26,13 @@
<div class="row" <?php if($displayedPage == 'widgetPayment') echo "style='display:none'";?>>
<label for="paymentAction">Payment action</label>
<select name="paymentAction" id="paymentAction">
<option value="100" <?php if(in_array($displayedPage, array('fullWebPayment','doAuthorization','doImmediateWalletPayment','doScheduledWalletPayment','doRecurrentWalletPayment')) && strcmp ("100",$_SESSION['PAYMENT_ACTION']) == 0) echo "selected"; ?>>100 (Autorisation)</option>
<option value="101" <?php if(in_array($displayedPage, array('fullWebPayment','doAuthorization','doImmediateWalletPayment','doScheduledWalletPayment','doRecurrentWalletPayment')) && strcmp ("101",$_SESSION['PAYMENT_ACTION']) == 0) echo "selected"; ?>>101 (Autorisation+Validation)</option>
<option value="100" <?php if(in_array($displayedPage, array('doWebPayment','doAuthorization','doImmediateWalletPayment','doScheduledWalletPayment','doRecurrentWalletPayment')) && strcmp ("100",$_SESSION['PAYMENT_ACTION']) == 0) echo "selected"; ?>>100 (Autorisation)</option>
<option value="101" <?php if(in_array($displayedPage, array('doWebPayment','doAuthorization','doImmediateWalletPayment','doScheduledWalletPayment','doRecurrentWalletPayment')) && strcmp ("101",$_SESSION['PAYMENT_ACTION']) == 0) echo "selected"; ?>>101 (Autorisation+Validation)</option>
<option value="108">108 (Demande information)</option>
<option value="110" <?php if(in_array($displayedPage, array('fullWebPayment','doAuthorization')) && strcmp ("110",$_SESSION['PAYMENT_ACTION']) == 0) echo "selected"; ?>>110 (Autorisation REC - enregistrement CVV)</option>
<option value="111" <?php if(in_array($displayedPage, array('fullWebPayment','doAuthorization')) && strcmp ("111",$_SESSION['PAYMENT_ACTION']) == 0) echo "selected"; ?>>111 (Autorisation+Validation REC - enregistrement CVV)</option>
<option value="120" <?php if(in_array($displayedPage, array('fullWebPayment','doAuthorization')) && strcmp ("120",$_SESSION['PAYMENT_ACTION']) == 0) echo "selected"; ?>>120 (Autorisation sans CVV)</option>
<option value="121" <?php if(in_array($displayedPage, array('fullWebPayment','doAuthorization')) && strcmp ("121",$_SESSION['PAYMENT_ACTION']) == 0) echo "selected"; ?>>121 (Autorisation+Validation sans CVV)</option>
<option value="110" <?php if(in_array($displayedPage, array('doWebPayment','doAuthorization')) && strcmp ("110",$_SESSION['PAYMENT_ACTION']) == 0) echo "selected"; ?>>110 (Autorisation REC - enregistrement CVV)</option>
<option value="111" <?php if(in_array($displayedPage, array('doWebPayment','doAuthorization')) && strcmp ("111",$_SESSION['PAYMENT_ACTION']) == 0) echo "selected"; ?>>111 (Autorisation+Validation REC - enregistrement CVV)</option>
<option value="120" <?php if(in_array($displayedPage, array('doWebPayment','doAuthorization')) && strcmp ("120",$_SESSION['PAYMENT_ACTION']) == 0) echo "selected"; ?>>120 (Autorisation sans CVV)</option>
<option value="121" <?php if(in_array($displayedPage, array('doWebPayment','doAuthorization')) && strcmp ("121",$_SESSION['PAYMENT_ACTION']) == 0) echo "selected"; ?>>121 (Autorisation+Validation sans CVV)</option>
<option value="150" <?php if(in_array($displayedPage, array('doBankTransfer'))) echo "selected"; ?>>150 (Virement)</option>
<option value="201" <?php if($displayedPage == 'doCapture') echo "selected"; ?>>201 (Validation)</option>
<option value="202" <?php if($displayedPage == 'doCapture' && strcmp ("202",PAYMENT_ACTION) == 0) echo "selected"; ?>>202 (R&#233;autorisation)</option>
Expand Down
6 changes: 3 additions & 3 deletions examples/web/doWebPaymentForm.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<form action="../demos/web.php" method="post" name="fullWebPayment" id="fullWebPayment" class="payline-form">
<form action="../demos/web.php" method="post" name="doWebPayment" id="doWebPayment" class="payline-form">
<?php
$displayedPage = 'fullWebPayment';
$displayedPage = 'doWebPayment';
include '../fieldset/version.php';
include '../fieldset/payment.php';
include '../fieldset/order.php';
Expand Down Expand Up @@ -55,5 +55,5 @@
</select>
</div>
</fieldset>
<input type="submit" name="submit" class="submit" value="fullWebPayment" />
<input type="submit" name="submit" class="submit" value="doWebPayment" />
</form>

0 comments on commit 2d497fb

Please sign in to comment.