dolibarr 21.0.0-alpha
server_payment.php File Reference

File that is entry point to call Dolibarr WebServices. More...

Go to the source code of this file.

Functions

 createPayment ($authentication, $payment)
 Create a payment.
 

Detailed Description

File that is entry point to call Dolibarr WebServices.

Definition in file server_payment.php.

Function Documentation

◆ createPayment()

createPayment ( $authentication,
$payment )

Create a payment.

Parameters
array{login:string,password:string,entity:?int,dolibarrkey:string}$authentication Array of authentication information
array{id:int,thirdparty_id:int|string,amount:float|string,num_payment:string,bank_account:int|string,payment_mode_id?:int|string,invoice_id?:int|string,int_label?:string,emitter:string,bank_source:string}$payment Payment
Returns
array{result:array{result_code:string,result_label:string},id?:int} Array result

Definition at line 160 of file server_payment.php.

References check_authentication(), dol_now(), and dol_syslog().