Date: Fri, 29 Mar 2024 03:32:59 +0100 (CET) Message-ID: <275163351.38461.1711679579861@atlf1p1.dc1lan.local> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_38460_191788933.1711679579860" ------=_Part_38460_191788933.1711679579860 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Before you can use Veri=
fyInrolment's webservice and Payline's doAuthorization, the information you=
need to authenticate and implement SSL V3 secure HTTPS is required.
In addition, a point of sale and a contract must be properly configured on =
the Payline Administration Center.
If you do not have a point-of-sale or a contract configured on the Administ=
ration Center, you must go to the Payline Administration Center: https://homologation-admin.payline.com
The following information is the e= ssential data for using the "webservice" verifyEnrolment and doAuthorizatio= n:
When making calls to Payline web s=
ervices, the Merchand ID and the Merchant Access Key must be submitted to p=
erform HTTP Authentication.
Web services calls will not be accepted if they are not correctly authent=
icated.
The authentication method used is =
called http Basic Authentication. If the merchant account ID is 1234567890 =
and your access key is DJMESHXYou6LmjQFdH, you must encode in base64 the va=
lue of 1234567890: DJMESHXYou6LmjQFdH.
The resulting string is to be added to the HTTP header as in the example be=
low:
Aut= horization: Basic MTIzNDU2Nzg5MdpESk1FU0hYWW91NkxtalFGZEg =3D
N=
ever share your Merchant Access Key with a third party. Payline uses your a=
ccess key to identify you as the sender of your payment requests.
No one at Payline knows it and will=
not ask you for this information.
The iframe mode is not compatible with the optimal and safe use of Payline.=
In the header of the HTTP message,= it is necessary to specify the value of the Authorization field. In this e= xample, the value of authorization field is Basic MTExMTExMTExOkFGanU5WEhwb= FF6dmFtZmZPNzJM.
If we decode MTExMTExMTExOkFGanU5W= EhwbFF6dmFtZmZPNzJM (which is encoded in base64), we get the following valu= e: 111111111: AFju9XHplQzvamffO72L (merchantID: AccessKey).
Adding the authorization value in = header of frame depends on technology used. If you are using a web service = client, it is best to do following:
The login v= ariable takes the value of merchantID The password variable takes the value of the accessKey // Build the verifyEnrolment request with the payment, card and orderRef ob= jects $verifyEnrollmentRequest =3D array ( 'payment' =3D> $this->payment($array['payment']), 'card' =3D> $this->card($array['card']), 'orderRef' =3D> $array['orderRef'] ); // Construct the header of the public message $ header_soap; $this->header_soap =3D array(); $this->header_soap['proxy_host'] =3D $this->proxy_host =3D PROXY_HOS= T; $this->header_soap['proxy_port'] =3D $this->proxy_port =3D PROXY_POR= T; $this->header_soap['proxy_login'] =3D $this->proxy_login =3D PROXY_L= OGIN; $this->header_soap['proxy_password'] =3D $this->proxy_password =3D P= ROXY_PASSWORD; $this->header_soap['login'] =3D $this->login =3D MERCHANT_ID; $this->header_soap['password'] =3D $this->password =3D ACCESS_KEY; $this->header_soap['style'] =3D SOAP_DOCUMENT; $this->header_soap['use'] =3D SOAP_LITERAL;=20 // Creation of the SoapClient instance which will allow the call of the Web= Service // Declaration of the endPoint as well as the header $client =3D new SoapClient('https://services.payline.com/V4/services/Direc= tPaymentAPI', $this->header_soap);=20 // Call the WebService $verifyEnrollmentResponse =3D $client->verifyEnrollment($verifyEnrollme= ntRequest);
If you do=
not use a web services client, you must add in header the raw value as in =
screen print: Authorization: Basic MTExMTExMTExOkFGanU5WEhwbFF6dmFtZmZPNzJM=