HOMO CMD24 (id 36939583973678)

Web Payment

doWebPayment (light) - doWebPayment (full) - getWebPaymentDetails

Demo that shows the usage of Payline webPayment API

span style="color: #ff0000;">'../initSDK.php';
 
// GET TOKEN
'token''token''token''token''token''token''paylinetoken''token''paylinetoken''Missing TOKEN';
}
 
//VERSION
'version''version''version''version''WS_VERSION'];
}
 
// RESPONSE FORMAT
'transaction']['id'])){
	$res = insertTransactionData(
    $response['payment']['contractNumber'],
    $response['order']['ref'],
    $response['transaction']['id'],  
    $response['payment']['action'],
    $response['payment']['amount'],
    $response['payment']['currency'],
    $response['result']['code''token''paymentRecordId']) && $res == 1){ // nouvelle insertion OK
'payment']['contractNumber'],$response['wallet']['walletId'],$response['paymentRecordId''<table>''	<tr>''		<td><H3>REQUEST</H3></td>''		<td><H3>RESPONSE</H3></td>''	</tr>''	<tr>'"		<td style='vertical-align: top; padding: 5px;'>"'		</td>'"		<td style='vertical-align: top; padding: 5px;'>"'		</td>''	</tr>''</table>'						
"../demos/web.php""post""payline-form"
	'../fieldset/version.php'
 
    	"row"
    		"token"Payment token
    		"text""token""token""<?php if(isset($_GET['token'])) echo $_GET['token']; ?>" />
    		<span class="help">(required)</span>
    	</div>
   </fieldset>
   <input type="submit" name="submit" class="submit" value="getWebPaymentDetails" />
</form>
/* @group Forms *//* @end */
(required)