HOMO CMD24 (id 36939583973678)
Web Payment
doWebPayment (light) - doWebPayment (full) - getWebPaymentDetails
Demo that shows the usage of Payline webPayment API
display example only html code | php code | css code
span style="color: #ff0000;">'../initSDK.php'; use Payline\PaylineSDK; //VERSION 'version''version''../arraySet/payment.php''../arraySet/order.php''../arraySet/privateDataList.php''../arraySet/buyer.php''../arraySet/owner.php''../arraySet/recurring.php''../arraySet/urls.php''../arraySet/webOptions.php'; // FIRST CONTRACT LIST 'selectedContract'";"'selectedContract''contracts'] = $contracts; } // SECOND CONTRACT LIST 'secondSelectedContract'";"'secondSelectedContract''secondContracts'] = $secondContracts; } // WALLET CONTRACT LIST 'contractNumberWalletList'";"'contractNumberWalletList''walletContracts'] = $walletContracts; } // EXECUTE // RESPONSE 'result']['code'] == '00000''data-template']=="redirect""location:".$response['redirectURL'// affichage du wigdet "<!DOCTYPE html><html><head><title>Payline API Widget</title>""<meta name='viewport' content='width=device-width, initial-scale=1'>""<meta http-equiv='X-UA-Compatible' content='IE=edge'>""<meta charset='UTF-8'>""<!--SCRIPTS-->"'ENVIRONMENT'"<script src='""'></script>""<script src='""'></script>""<script src='""'></script>""<!--SCRIPTS END-->""<!--STYLES -->"'ENVIRONMENT'"<link rel='stylesheet' href='""'>""<link rel='stylesheet' href='""'>""<link rel='stylesheet' href='""'>""<!--STYLES END-->""</head><body>""<div id='PaylineWidget' data-token='".$response['token']."' data-template='"'data-template']."' ></div>""</body></html>"'ERROR : '.$response['result']['code']. ' '.$response['result']['longMessage'].' <BR/>'; }
"../demos/web.php""post""fullWebPayment""fullWebPayment""payline-form" 'fullWebPayment'; include '../fieldset/version.php'; include '../fieldset/payment.php'; include '../fieldset/order.php'; include '../fieldset/urls.php'; include '../fieldset/privateDataList.php'; include '../fieldset/webOptions.php'; include '../fieldset/buyer.php'; include '../fieldset/owner.php'; include '../fieldset/recurring.php' Contrats "row" "selectedContract"Selected contract list "text""selectedContract""selectedContract""<?php echo $_SESSION['CONTRACT_NUMBER_LIST']?>" /> <span class="help">(separator if severals numbers : ";")</span> </div> <div class="row"> <label for="">Second contract list</label> <input type="" name="" id="" value="'SECOND_CONTRACT_NUMBER_LIST'" /> "help"(separator if severals numbers : ";") "row" "contractNumberWalletList"Wallet contract list "text""contractNumberWalletList""contractNumberWalletList""<?php echo $_SESSION['WALLET_CONTRACT_NUMBER_LIST']?>"> <span class="help">(separator if severals numbers : ";")</span> </div> </fieldset> <fieldset> <h4>User Experience : redirection / lightbox / inside the shop</h4> <div class="row"> <label for="">template</label> <select name="" id=""> <option value="" selected>redirect</option> <option value="lightbox">lightbox</option> <option value="tab">in-shop tab</option> <option value="column">in-shop column</option> </select> </div> </fieldset> <input type="submit" name="submit" class="submit" value="fullWebPayment" /> </form>
/* @group Forms *//* @end */