kit PHP v4.44.1  -  Merchant ID 31714271088582  -  PROD

Web Payment

doWebPayment (light) - doWebPayment (full) - getWebPaymentDetails

Demo that shows the usage of Payline webPayment API

span style="color: #808080; font-style: italic;">// INITIALIZE
//require_once("../../include.php");
//VERSION
'version'// PAYMENT
'payment']['amount''amount''payment']['currency''currency''payment']['action''payment']['mode'// ORDER
'order']['ref''ref''order']['amount''amount''order']['currency''currency'];
 
// CONTRACT NUMBERS
'payment']['contractNumber'";"'contracts'";"'secondContracts'] = $secondContracts;
 
// EXECUTE
'result']['code'] == '00000'"location:".$response['redirectURL''ERROR : '.$response['result']['code']. ' '.$response['result']['longMessage'].' <BR/>'						
"../demos/web.php""post""payline-form"
 
		Do Web Payment minimal informations
		"row"
			"ref"Order reference
			"text""ref""ref""<?php echo 'PHP-'.time()?>">
			<span class="help">(required)</span>
		</div>
		<div class="row">
			<label for="amount">Amount</label>
			<input type="" name="amount" id="amount" value="33300">
			<span class="help">(required)</span>
		</div>
		<div class="row">
			<label for="currency">Currency</label>
			<select name="currency" id="currency">
			 <option value="978">EURO (EUR)</option>
			 <option value="840">US DOLLAR (USD)</option>
			 <option value="756">FRANC SUISSE (CHF)</option>
			 <option value="826">STERLING (GBP)</option>
			 <option value="124">CANADIAN DOLLAR (CAD)</option>
			</select>
		</div>
		<div class="row">
			<label for="debug">MODE DEBUG</label>
			<input type="checkbox" name="debug" id="debug" value="YES">
		</div>
	</fieldset>
	<input type="submit" name="submit" class="submit" value="doWebPayment">
</form>
/* @group Forms *//*background: #ddd;*//* @end */

Do Web Payment minimal informations

(required)
(required)