Skip to content

Commit

Permalink
V4.59
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlelieBouvier committed Sep 7, 2019
1 parent 2d497fb commit ba2d6a3
Show file tree
Hide file tree
Showing 23 changed files with 344 additions and 25 deletions.
4 changes: 3 additions & 1 deletion examples/arraySet/authentication3DSecure.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@
$array['3DSecure']['cavv'] = $_POST['cavv'];
$array['3DSecure']['cavvAlgorithm'] = $_POST['cavvAlgorithm'];
$array['3DSecure']['vadsResult'] = $_POST['vadsResult'];
$array['3DSecure']['typeSecurisation'] = $_POST['typeSecurisation'];
$array['3DSecure']['typeSecurisation'] = $_POST['typeSecurisation'];
$array['3DSecure']['resultContainer'] = $_POST['resultContainer'];
$array['3DSecure']['authenticationResult'] = $_POST['authenticationResult'];
9 changes: 9 additions & 0 deletions examples/arraySet/buyer.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
$array['buyer']['isEmulator'] = $_POST['isEmulator'];
$array['buyer']['isRooted'] = $_POST['isRooted'];
$array['buyer']['hasTimezoneMismatch'] = $_POST['hasTimezoneMismatch'];
$array['buyer']['buyerExtended'] = $_POST['buyerExtended'];
$array['buyer']['merchantAuthentication'] = $_POST['merchantAuthentication'];
$array['buyer']['loyaltyMemberType'] = $_POST['loyaltyMemberType'];

// BILLING ADDRESS
$array['billingAddress']['title'] = $_POST['billingAddressTitle'];
Expand All @@ -41,6 +44,9 @@
$array['billingAddress']['state'] = $_POST['billingAddressState'];
$array['billingAddress']['phoneType'] = $_POST['billingAddressPhoneType'];
$array['billingAddress']['phone'] = $_POST['billingAddressPhone'];
$array['billingAddress']['streetNumber'] = $_POST['billingStreetNumber'];
$array['billingAddress']['addressCreateDate'] = $_POST['billingAddressCreateDate'];
$array['billingAddress']['email'] = $_POST['billingEmail'];

// SHIPPING ADDRESS
$array['shippingAddress']['title'] = $_POST['shippingAddressTitle'];
Expand All @@ -56,3 +62,6 @@
$array['shippingAddress']['state'] = $_POST['shippingAddressState'];
$array['shippingAddress']['phoneType'] = $_POST['shippingAddressPhoneType'];
$array['shippingAddress']['phone'] = $_POST['shippingAddressPhone'];
$array['billingAddress']['streetNumber'] = $_POST['shippingStreetNumber'];
$array['billingAddress']['addressCreateDate'] = $_POST['shippingAddressCreateDate'];
$array['billingAddress']['email'] = $_POST['shippingEmail'];
6 changes: 5 additions & 1 deletion examples/arraySet/order.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
$item1['subcategory1'] = $_POST['orderDetailSubcategory1_1'];
$item1['subcategory2'] = $_POST['orderDetailSubcategory2_1'];
$item1['additionalData'] = $_POST['orderDetailAdditionalData1'];
$item1['seller'] = $_POST['orderDetailSeller1'];
$item1['sellerType'] = $_POST['orderDetailSellerType1'];
$item1['taxRate'] = $_POST['orderDetailTaxRate1'];
$payline->addOrderDetail($item1);
}
Expand All @@ -40,5 +42,7 @@
$item2['subcategory2'] = $_POST['orderDetailSubcategory2_2'];
$item2['additionalData'] = $_POST['orderDetailAdditionalData2'];
$item2['taxRate'] = $_POST['orderDetailTaxRate2'];
$item2['seller'] = $_POST['orderDetailSeller2'];
$item2['sellerType'] = $_POST['orderDetailSellerType2'];
$payline->addOrderDetail($item2);
}
}
1 change: 1 addition & 0 deletions examples/arraySet/payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
$array['payment']['contractNumber'] = $_POST['paymentContractNumber'];
$array['payment']['softDescriptor'] = $_POST['paymentSoftDescriptor'];
$array['payment']['cardBrand'] = $_POST['cardBrand'];
$array['payment']['cumulatedAmount'] = $_POST['cumulatedAmount'];
4 changes: 3 additions & 1 deletion examples/arraySet/recurring.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@
if (isset($_POST['recurringNewAmount']))
$array['recurring']['newAmount'] = $_POST['recurringNewAmount'];
if (isset($_POST['recurringAmountModificationDate']))
$array['recurring']['amountModificationDate'] = $_POST['recurringAmountModificationDate'];
$array['recurring']['amountModificationDate'] = $_POST['recurringAmountModificationDate'];
if (isset($_POST['billingRank']))
$array['recurring']['billingRank'] = $_POST['billingRank'];
27 changes: 27 additions & 0 deletions examples/arraySet/threeDSInfo.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php
$array['threeDSInfo']['challengeInd'] = $_POST['challengeInd'];
$array['threeDSInfo']['threeDSReqPriorAuthData'] = $_POST['threeDSReqPriorAuthData'];
$array['threeDSInfo']['threeDSReqPriorAuthMethod'] = $_POST['threeDSReqPriorAuthMethod'];
$array['threeDSInfo']['threeDSReqPriorAuthTimestamp'] = $_POST['threeDSReqPriorAuthTimestamp'];
$array['threeDSInfo']['threeDSMethodNotificationURL'] = $_POST['threeDSMethodNotificationURL'];
$array['threeDSInfo']['threeDSMethodResult'] = $_POST['threeDSMethodResult'];

// SDK
$array['sdk']['deviceRenderingOptionsIF'] = $_POST['deviceRenderingOptionsIF'];
$array['sdk']['deviceRenderOptionsUI'] = $_POST['deviceRenderOptionsUI'];
$array['sdk']['appID'] = $_POST['appID'];
$array['sdk']['ephemPubKey'] = $_POST['ephemPubKey'];
$array['sdk']['maxTimeout'] = $_POST['maxTimeout'];
$array['sdk']['referenceNumber'] = $_POST['referenceNumber'];
$array['sdk']['transID'] = $_POST['transID'];

// BROWSER
$array['browser']['acceptHeader'] = $_POST['acceptHeader'];
$array['browser']['javaEnabled'] = $_POST['javaEnabled'];
$array['browser']['javascriptEnabled'] = $_POST['javascriptEnabled'];
$array['browser']['language'] = $_POST['language'];
$array['browser']['colorDepth'] = $_POST['colorDepth'];
$array['browser']['screenHeight'] = $_POST['screenHeight'];
$array['browser']['screenWidth'] = $_POST['screenWidth'];
$array['browser']['timeZoneOffset'] = $_POST['timeZoneOffset'];
$array['browser']['userAgent'] = $_POST['userAgent'];
7 changes: 7 additions & 0 deletions examples/direct/verifyEnrollment.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@

include '../arraySet/payment.php';
include '../arraySet/card.php';
include '../arraySet/order.php';
include '../arraySet/orderDetails.php';
include '../arraySet/buyer.php';
include '../arraySet/recurring.php';
include '../arraySet/subMerchant.php';
include '../arraySet/threeDSInfo.php';

// MD
$array['mdFieldValue'] = $_POST['mdFieldValue'];
Expand All @@ -14,6 +20,7 @@
$array['userAgent'] = $_POST['UsrAgent'];

// ORDER
// old ref
$array['orderRef'] = $_POST['orderRef'];

// WALLET
Expand Down
6 changes: 6 additions & 0 deletions examples/direct/verifyEnrollmentForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
include '../fieldset/card.php';
include '../fieldset/payment.php';
include '../fieldset/merchantName.php';
include '../fieldset/order.php';
include '../fieldset/orderDetails.php';
include '../fieldset/buyer.php';
include '../fieldset/recurring.php';
include '../fieldset/subMerchant.php';
include '../fieldset/threeDSInfo.php';
?>
<fieldset>
<div class="row">
Expand Down
10 changes: 9 additions & 1 deletion examples/fieldset/authentication3DSecure.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,12 @@
<label for="typeSecurisation">Type securisation</label>
<input type="text" name="typeSecurisation" id="typeSecurisation" value="" />
</div>
</fieldset>
<div class="row">
<label for="resultContainer">Result container</label>
<input type="text" name="resultContainer" id="resultContainer" value="" />
</div>
<div class="row">
<label for="authenticationResult">Authentication result</label>
<input type="text" name="authenticationResult" id="authenticationResult" value="" />
</div>
</fieldset>
41 changes: 41 additions & 0 deletions examples/fieldset/browser.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<fieldset>
<div class="row">
<h5>Browser</h5>
</div>
<div class="row">
<label for="acceptHeader">AcceptHeader</label>
<input type="text" name="acceptHeader" id="acceptHeader" value="" />
</div>
<div class="row">
<label for="javaEnabled">JavaEnabled</label>
<input type="text" name="javaEnabled" id="javaEnabled" value="" />
</div>
<div class="row">
<label for="language">Language</label>
<input type="text" name="language" id="language" value="" />
</div>
<div class="row">
<label for="colorDepth">ColorDepth</label>
<input type="text" name="colorDepth" id="colorDepth" value="" />
</div>
<div class="row">
<label for="screenHeight">ScreenHeight</label>
<input type="text" name="screenHeight" id="screenHeight" value="" />
</div>
<div class="row">
<label for="screenWidth">ScreenWidth</label>
<input type="text" name="screenWidth" id="screenWidth" value="" />
</div>
<div class="row">
<label for="timeZoneOffset">TimeZoneOffset</label>
<input type="text" name="timeZoneOffset" id="timeZoneOffset" value="" />
</div>
<div class="row">
<label for="userAgent">UserAgent</label>
<input type="text" name="userAgent" id="userAgent" value="" />
</div>
<div class="row">
<label for="javascriptEnabled">JavascriptEnabled</label>
<input type="text" name="javascriptEnabled" id="javascriptEnabled" value="" />
</div>
</fieldset>
49 changes: 45 additions & 4 deletions examples/fieldset/buyer.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,17 @@ function clearSampleBuyer(){
document.getElementById('isFromTor').value= '';
document.getElementById('isEmulator').value= '';
document.getElementById('isRooted').value= '';
document.getElementById('hasTimezoneMismatch').value= '';
}
document.getElementById('hasTimezoneMismatch').value= '';
document.getElementById('shippingStreetNumber').value= '';
document.getElementById('shippingAddressCreateDate').value= '';
document.getElementById('shippingEmail').value= '';
document.getElementById('billingEmail').value= '';
document.getElementById('billingAddressCreateDate').value= '';
document.getElementById('billingStreetNumber').value= '';
document.getElementById('buyerExtended').value= '';
document.getElementById('merchantAuthentication').value= '';
document.getElementById('loyaltyMemberType').value= '';
}
</script>

<fieldset>
Expand Down Expand Up @@ -175,9 +184,17 @@ function clearSampleBuyer(){
</select>
</div>
<div class="row">
<label for="billingAddressPhone">Phone</label>
<input type="text" name="billingAddressPhone" id="billingAddressPhone" value="<?php echo $_SESSION['billingAddressPhone'] ?>" />
<label for="billingStreetNumber">Street number</label>
<input type="text" name="billingStreetNumber" id="billingStreetNumber" value="<?php echo $_SESSION['billingStreetNumber'] ?>" />
</div>
<div class="row">
<label for="billingAddressCreateDate">Address create date</label>
<input type="text" name="billingAddressCreateDate" id="billingAddressCreateDate" value="<?php echo $_SESSION['billingAddressCreateDate'] ?>" />
</div>
<div class="row">
<label for="billingEmail">Email</label>
<input type="text" name="billingEmail" id="billingEmail" value="<?php echo $_SESSION['billingEmail'] ?>" />
</div>
</fieldset>
</td>
<td>
Expand Down Expand Up @@ -261,6 +278,18 @@ function clearSampleBuyer(){
<label for="shippingAddressPhone">Phone</label>
<input type="text" name="shippingAddressPhone" id="shippingAddressPhone" value="<?php echo $_SESSION['shippingAddressPhone'] ?>" />
</div>
<div class="row">
<label for="shippingStreetNumber">Street number</label>
<input type="text" name="shippingStreetNumber" id="shippingStreetNumber" value="<?php echo $_SESSION['shippingStreetNumber'] ?>" />
</div>
<div class="row">
<label for="shippingAddressCreateDate">Address create date</label>
<input type="text" name="shippingAddressCreateDate" id="shippingAddressCreateDate" value="<?php echo $_SESSION['shippingAddressCreateDate'] ?>" />
</div>
<div class="row">
<label for="shippingEmail">Email</label>
<input type="text" name="shippingEmail" id="shippingEmail" value="<?php echo $_SESSION['shippingEmail'] ?>" />
</div>
</fieldset>
</td>
</tr>
Expand Down Expand Up @@ -377,4 +406,16 @@ function clearSampleBuyer(){
<input type="text" name="hasTimezoneMismatch" id="hasTimezoneMismatch" value="<?php echo $_SESSION['hasTimezoneMismatch'] ?>" />
<span class="help">(Y/N)</span>
</div>
<div class="row" <?php if($displayedPage == 'widgetPayment') echo "style='display:none'";?>>
<label for="buyerExtended">buyerExtended</label>
<input type="text" name="buyerExtended" id="buyerExtended" value="<?php echo $_SESSION['buyerExtended'] ?>" />
</div>
<div class="row" <?php if($displayedPage == 'widgetPayment') echo "style='display:none'";?>>
<label for="loyaltyMemberType">loyaltyMemberType</label>
<input type="text" name="loyaltyMemberType" id="loyaltyMemberType" value="<?php echo $_SESSION['loyaltyMemberType'] ?>" />
</div>
<div class="row" <?php if($displayedPage == 'widgetPayment') echo "style='display:none'";?>>
<label for="merchantAuthentication">merchantAuthentication</label>
<input type="text" name="merchantAuthentication" id="merchantAuthentication" value="<?php echo $_SESSION['merchantAuthentication'] ?>" />
</div>
</fieldset>
49 changes: 47 additions & 2 deletions examples/fieldset/order.php
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,35 @@ function clearSampleOrder(){
<label for="deliveryCharge">Delivery charge</label>
<input type="text" name="deliveryCharge" id="deliveryCharge" value="" />
</div>

<div class="row" <?php if($displayedPage == 'configuration') echo "style='display:none'";?>>
<label for="discountAmount">Discount amount</label>
<input type="text" name="discountAmount" id="discountAmount" value="" />
</div>
<div class="row" <?php if($displayedPage == 'configuration') echo "style='display:none'";?>>
<label for="otaPackageType">OTA package type</label>
<input type="text" name="otaPackageType" id="otaPackageType" value="" />
</div>
<div class="row" <?php if($displayedPage == 'configuration') echo "style='display:none'";?>>
<label for="otaDestinationCountry">OTA destination country</label>
<input type="text" name="otaDestinationCountry" id="otaDestinationCountry" value="" />
</div>
<div class="row" <?php if($displayedPage == 'configuration') echo "style='display:none'";?>>
<label for="bookingReference">Booking reference</label>
<input type="text" name="bookingReference" id="bookingReference" value="" />
</div>
<div class="row" <?php if($displayedPage == 'configuration') echo "style='display:none'";?>>
<label for="orderDetail">Order detail</label>
<input type="text" name="orderDetail" id="orderDetail" value="" />
</div>
<div class="row" <?php if($displayedPage == 'configuration') echo "style='display:none'";?>>
<label for="orderExtended">Order extended</label>
<input type="text" name="orderExtended" id="orderExtended" value="" />
</div>
<div class="row" <?php if($displayedPage == 'configuration') echo "style='display:none'";?>>
<label for="orderOTA">Order OTA</label>
<input type="text" name="orderOTA" id="orderOTA" value="" />
</div>
<div class="row">
<h5>Order details</h5>
</div>
Expand Down Expand Up @@ -327,6 +356,14 @@ function clearSampleOrder(){
<label for="orderDetailTaxRate1">Item 1 tax rate</label>
<input type="text" name="orderDetailTaxRate1" id="orderDetailTaxRate1" value="<?php echo $_SESSION['orderDetailTaxRate1'] ?>" />
</div>
<div class="row">
<label for="orderDetailSellerType1">Item 1 Seller type</label>
<input type="text" name="orderDetailSellerType1" id="orderDetailSellerType1" value="<?php echo $_SESSION['orderDetailSellerType1'] ?>" />
</div>
<div class="row">
<label for="orderDetailSeller1">Item 1 Seller</label>
<input type="text" name="orderDetailSeller1" id="orderDetailSeller1" value="<?php echo $_SESSION['orderDetailSeller1'] ?>" />
</div>
</td>
<td>
<div class="row">
Expand Down Expand Up @@ -368,8 +405,16 @@ function clearSampleOrder(){
<div class="row">
<label for="orderDetailTaxRate2">Item 2 tax rate</label>
<input type="text" name="orderDetailTaxRate2" id="orderDetailTaxRate2" value="<?php echo $_SESSION['orderDetailTaxRate2'] ?>" />
</div>
</td>
</div>
<div class="row">
<label for="orderDetailSellerType2">Item 2 Seller type</label>
<input type="text" name="orderDetailSellerType2" id="orderDetailSellerType2" value="<?php echo $_SESSION['orderDetailSellerType2'] ?>" />
</div>
<div class="row">
<label for="orderDetailSeller2">Item 2 Seller</label>
<input type="text" name="orderDetailSeller2" id="orderDetailSeller2" value="<?php echo $_SESSION['orderDetailSeller2'] ?>" />
</div>
</td>
</tr>
</table>
</fieldset>
7 changes: 6 additions & 1 deletion examples/fieldset/payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,9 @@
</select>
</div>

</fieldset>
<div class="row" <?php if($displayedPage == 'widgetPayment') echo "style='display:none'";?>>
<label for="cumulatedAmount">Cumulated amount</label>
<input type="text" name="cumulatedAmount" id="cumulatedAmount" value="">
</div>

</fieldset>
4 changes: 4 additions & 0 deletions examples/fieldset/recurring.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,8 @@
?>
</select>
</div>
<div class="row">
<label for="billingRank">Billing bank</label>
<input type="text" name="billingRank" id="billingRank" value="" />
</div>
</fieldset>
33 changes: 33 additions & 0 deletions examples/fieldset/sdk.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<fieldset>
<div class="row">
<h5>SDK</h5>
</div>
<div class="row">
<label for="deviceRenderingOptionsIF">DeviceRenderingOptionsIF</label>
<input type="text" name="deviceRenderingOptionsIF" id="deviceRenderingOptionsIF" value="" />
</div>
<div class="row">
<label for="deviceRenderOptionsUI">DeviceRenderOptionsUI</label>
<input type="text" name="deviceRenderOptionsUI" id="deviceRenderOptionsUI" value="" />
</div>
<div class="row">
<label for="appID">AppID</label>
<input type="text" name="appID" id="appID" value="" />
</div>
<div class="row">
<label for="ephemPubKey">EphemPubKey</label>
<input type="text" name="ephemPubKey" id="ephemPubKey" value="" />
</div>
<div class="row">
<label for="maxTimeout">MaxTimeout</label>
<input type="text" name="maxTimeout" id="maxTimeout" value="" />
</div>
<div class="row">
<label for="referenceNumber">ReferenceNumber</label>
<input type="text" name="referenceNumber" id="referenceNumber" value="" />
</div>
<div class="row">
<label for="transID">TransID</label>
<input type="text" name="transID" id="transID" value="" />
</div>
</fieldset>
Loading

0 comments on commit ba2d6a3

Please sign in to comment.