Arborescence des pages

Vous regardez une version antérieure (v. /display/DT/Webservice+-+getWebPaymentDetailsResponse) de cette page.

afficher les différences afficher l'historique de la page

« Afficher la version précédente Vous regardez la version actuelle de cette page. (v. 5) afficher la version suivante »


     


 Request

Response


Response

The "getWebPaymentDetailsResponse" message is Payline's response to a request for the result of a web payment. It allows you to obtain, among other things, the unique transaction number on Payline and the debit authorization number issued by your bank. 
The answer has the following structure:

Element

Description

Required

Format

Example

Condition

result

Information on the result of the request for payment information:

00000: Transaction approved 
01xxx: Transaction refused 
021xx: Internal Error

See below the elements

Yes

Object result



transaction

Transaction Information : See below the elements

Yes

Object transaction



payment

Payment Information : See below the elements

Yes

Object payment



authorization

Authorization Information : See below the elements

Yes

Object authorization



privateDataList

Information on private data : See below the elements

no

Object privateDataList



paymentRecordId

Identifier of the payment record

no

YEAR

173661


billingRecordList


Deadline table : See below the elements

no

Object billingRecordList


Only in the case of a recurring or subscription payment.

authentication3DSecure

Referred to POST by CSA : See below the elements

noObject authentication3DSecure



card

Card Information : See below the elements

no

Object cardOut



extendedCard

Additional information on the map : See below the elements

noExtendedCardType Object



order

Order Information : See below the elements

noObject order




paymentAdditionalList

Table of supplementary payments : See below the elements

noObject paymentAdditionalList



Only in the case of additional payment (s)

media

Detection of the media by Payline used during the payment.

The possible values ​​of this tag are:

- Computer 
- Mobile 
- Tablet 
- TV 
- Console 
- Undefined

 no

AN25

Computer


numberOfAttempt

The number of attempts made by the customer during his web payment

List of possible values:

- 0: No payment attempt 
- 1, 2 or 3 payment attempts 
- 4, 5 or 6 payment attempts (only possible with the replay option of the transaction)

 no

N1

3

version 5 or higher

wallet

Wallet Information : See below the elements

no

Object wallet



contractNumberWalletList

A chart of the contract numbers of the wallet : See below the elements

noObject contractNumberWalletList


Not used in Widget mode. 
contractNumberNumber of the contract on which the transaction was carried outnoYEAR

bankAccountDataBank account information : See below the elementsnoObject bankAccountData

subMerchantPayment Facilitator Information : See below the elementsnoObject subMerchant

buyerBuyer Information : See below the elementsnoObject buyer
version 19 or higher


The reference elements

Object result


Field

Description

Format

Condition

code

Web service return code : More information Return code and Payline message

Accepted transaction: 00000, 02400, 02500, 02501, 03000, 04000.
Other code: Transaction not accepted.

N5


shortMessage

Short message of transaction status. See the list of values

AN50


longMessage

Message of transaction result : status detail

AN255


partnerCodeReturn code from partner (payment method) and SAA acquirerAN50From version 14
partnerCodeLabelDescription of the partner error codeAN255From version 14


Object transaction


FieldDescriptionFormatExampleCondition
idUnique Payline transaction identifier AN50

date

Date and time of Payline transaction.   

Format : dd/mm/yy HH24:MI        pour les services : doRefund, doCapture, ...

Format : dd/mm/yy HH24:MI:SS  pour  getWebPaymentDetailsResponse   

AN17


01/01/18 12:00

01/01/18 12:00:00

Suivi les webservices le format peut changer.
isDuplicated

This indicator is returned by Payline in case of transaction duplicated

1 = duplicate transaction 
0 = no duplicate detected

AN11
isPossibleFraud

This indicator is calculated according to the criteria defined by the merchant:

1 = There is a risk of fraud 
0 = No risk of fraud detected

AN11
fraudResultFraud CodeAN50

fraudResultDetailsFraud DetailsObject fraudResultDetails

explanationReason for refusal in case of fraudAN50

threeDSecure

This indicator is returned by Payline during 3DSecure transactions : 

Y = 3DS Transaction 
N = Non-3DS Transaction 
D = 3DS Downgraded by issuer (Version 14 or higher)

AN1

softDescriptor

Information displayed on the account statement of the buyer, limited with certain payment method. This information will be displayed on the payment ticket.

Special characters (not A..Z and 1..9) are specific to each acquirer / payment method. Check acquirer for format and support (version CB2A 1.5).

AN64www.boutique.fr

version 13 or higher.

version 16 or higher for Paypal.

scoreFraud scoring value : Score from 0 to 10N52
scoringActivated with subscription for ClearsaleObject scoring

externalWalletTypeType of wallet used during the transaction. Ex : V.Me, MasterpassAN20MasterpassNot used in doAuthorization
externalWalletContractNumberVAD contract number associated with Wallet paymentAN50
Not used in doAuthorization
PartnerAdditionalData

Information returned to the merchant from the partners:

AN


version 16 or higher


avsAVS Address Verification Serviceobject avs
version 17 or higher
customerIdFor specific use only.AN
version 23 or higher
typeFor specific use only.AN
version 23 or higher
orderReferenceFor specific use only.AN
version 23 or higher
paymentFor specific use only.object payment
version 23 or higher
pointOfSellFor specific use only.object pointOfSell
version 23 or higher
cardFor specific use only.object card
version 23 or higher
extendedCardFor specific use only.object extendedCard
version 23 or higher


Object fraudResultDetails


FieldDescriptionFormatExample
code

Return code of the web service.

00000: Transaction approved
01xxx: Transaction refused
021xx: Internal Error
cf. complete list in the appendix table "Return codes"

N5

00000

shortMessageMessage court du résultat de la transactionAN50ACCEPTED
longMessageMessage du résultat de la transactionAN255Transaction approved


Object payment


Field

Description

Mandatory

Format

Example

Condition

amount

Transaction amount in the smallest currency unit. The value 100 corresponds to 1 €

Yes

N12

100


currency

Payment currency code

Yes

N3

978


action

Payment function code : see the table

Yes

N3

100


mode

Payment mode full or deferred : see the table

Yes

AN3

CPT


contractNumber

The e-commerce contract code or number which gives the payment method you wish to use

Conditionnal

AN20

1234567

  • doWebPayment : mandatory (defined point of sale)  
  • doAuthorization (defined point of sale : mandatory) 
  • doCapture / doRefund : not used.

differedActionDate

Date of the action. It must be earlier than today + 7 days.  Format : dd/mm/yy

No

AN8

07/04/2016

If the mode = DIF field, then the DifferedActionDate date is required otherwise this field must be empty.

method

Name of card issuer : see the table values

No

AN20

CB

version 10 or higher.
Ex : CB, PAYSAFECARD

softDescriptor

Information displayed on the account statement of the buyer, limited with certain means of payment. This information will be displayed on the payment ticket. 
Special characters (not A..Z and 1..9) are specific to each acquirer / payment method.

NoAN64www.boutique.fr

version 13 or higher

(avertissement) Not supported by all banks. Please check Soft Descriptor (DSD)

cardBrand

Indicates the scheme used for the operation, see table. 
It is necessary only if the payment method allows the choice (card payment).

NoAN15

version 15 or higher


registrationToken

Token used in response in services. 
It allows the partner to return a token to identify a consumer and finds this data when making a payment request.
NoAN

version 18 or higher

RELEASE 4.53

cumulatedAmount

In case of installment or recurring payment this parameter specifies the amount paid up to now.

The amount does not include this last payment.

The amount is expressed in the smallest currency unit.

NoN12

version 21 or higher

RELEASE 4.58


Object authorization


Field

Description

Mandatory

Format

Example

number

Authorization number issued by the acquirer authorization server. This field is filled in if the authorization request is granted.

In test environment, the simulator is returned A55A.

Yes

AN6

123456

date

Date and time of authorization : Format : dd/mm/yyyy HH24:MI

Yes

AN17

18/05/18 16:12:29

authorizedAmountAmount authorized in transaction : 100 is 1,00 EuroNoAN100
authorizedCurrencyAmount used in transaction.NoAN978
reattempt response to the authorisation request in version 1.6.2 from CB2A.NoObject - reattempt


Object privateDataList


Field

Description

Mandatory

Format

Example

privateData

List containing privateData

Number of items 0 to 100

Yes

Object - privateData



Object privateData


Field

Description

Mandatory

Format

Example

key

Key name of value

Yes

AN50

user

value

Value associated to the key

Yes

AN50

Martin


Object billingRecord


Field

Description

Mandatory

Format

Example

Conditions

date

The date of the expiry, Format: dd/mm/yyyy

Yes

AN10



amount

The amount in the smallest unit of the currency.
For an amount of 100 €, you must set the value 10000.

Yes

N12

10000


status

The status of deadline. Values : 
0: future deadline. 
1: accepted deadline 
2: deadline refused. 
3: current deadline (a retry is scheduled after one or more failures).

4: the due date is disabled (caused by multiple return codes).
Yes

AN1

0


result

The return code of the due date processing. 

See complete list in the appendix table "List of return codes" :

00000: Transaction approved 

No

Object - result

00000


transaction

Payline transaction information

NoObject - transaction



authorization

Information about the authorization issued by the acquirer authorization server


No

Object - authorization



nbTry

Number of payment attempts done

No

N3


version greater than or equal to 8

rank

Rank of the due date within the payment record.

Allows editing via updateBillingRecord

No

N12


version greater than or equal to 8




Object authentication3DSecure


Field

Description

Required

Format

Condition

md

3DSecure merchant data : Referred to POST by ACS

No

AN20


pares

Payer authentification response : Referred to POST by ACS

No

AN


xid

Unique transaction identifier, base-64 encoded

No

AN28


eci

Electronic Commerce Indicator. to send in the authorization

No

AN2


cavv

Cardholder Authentication Verification Value determined by the ACS.

No

AN28


cavvAlgorithm

Algorithm used for CAVV generation. The current possible values ​​are:  Codes cavvAlgorithm

No

N1

W : Wallet UEP

vadsResult

Summary of 3DSecure operations in hexadecimal. This field is no longer used.

No

AN8


typeSecurisationField used as information for authentication.This field is no longer used.NoAN1020 :  VADS
else  9 : VAD
PaResStatus

To use a non-Payline MPI, you must fill in this field. See values : Codes PaResStatus

NoAN1Provided Version 27 in response services.
VeResStatus

To use a non-Payline MPI, you must fill in this field. See values :  Codes VeResStatus

NoAN1Provided Version 27 in response services.
resultContainer

Container gathering the authentication result parameters.

NoAN2048Version 21 or higher (3DSV2)
authenticationResultNOT USED



Object cardOut


Field

Description

Mandatory

Format

Example

Condition

number

Card marked according to PCI DSS

No

AN

111122XXXXXX4444

If the token field is populated, the number field must be empty.

type

Type of card: CB, VISA, MASTERCARD, MAESTRO, AMEX

No

AN

CB


expirationDate

Expiration date of the card

No

AN

0311


cardholder

Cardholder's name

No

AN20

Pierre Dupont


token

Alias ​​of the card number.

The version must be greater than or equal to 3

No

AN19

1111gPNzHtyu4444


panType

In response card type used from XPay : TOKEN ou CARD_PAN

NoANTOKENAPI version 22 or superior (4.60.1 ).


Object extendedCardType


Field

Description

Format

Example

country

Card country issuer : CODE ISO 

AN3

FRA

isCvd

The card is it a Virtual Carte : Y or N

AN1

Y

bank

The bank of the card used for payment

AN50

Crédit Lyonnais

type

The type of payment card

AN20

MASTERCARD

network

Refers to attachment of card to an entity managing the acceptance of card at national or international level

AN20

MASTERCARD

product

Indicates the category to which the card type belongs: see product codes

AN100

Gold/Premier


Object order


Field

Description

Mandatory

Type

Example

Condition

ref

Order reference.
This reference must be unique since it is used in duplicate request check.
The back slash character ("\") is forbidden.

Yes

AN50

12345678


origin

Type of order with the values : 

  • E-commerce (default)
  • MO for mail order
  • TO for telephon order
  • In-Store for Proximity (For Monext internal use Only)

No

AN



country

Code of the country in which the order is done, see the list

No

AN2

FR


taxes

The amount of tax added to the order in the smallest currency unit.
An amount of 1 € corresponds to 100.

No

N12

100


amount

The amount of order in smallest unit of currency.
An amount of 60 € corresponds to 6000.

Yes

N12

6000

(avertissement)  From version 28  of the API, this field must contain the amount to be authenticated  (3DSV2)

currency

Currency code used for order. The ISO code :

978: euros 
840: US dollars

See complete list in  List of currencies

Yes

N3

978

date

The merchant order date.  Format : dd/mm/yyyy HH24:MI

Yes

AN16

07/04/2016 11:00

details

Information about the ordered items. The order details is limited to 100 items.

No

List of Objects 'OrderDetails'



deliveryTime

Delivery time : Values for deliveryTime

No

N

1


deliveryMode

Delivery method : Values for deliveryMode

No

N

4


deliveryChargeAmount of delivery charges in smallest unit of currency, example 250 for 2.50 eurosNoN
version 18 ou higher 
deliveryExpectedDate

Expected delivery date must be greater than the current date. Format: dd/mm/yyyy

Nodatetime07/04/2016Posted to Limonetik
deliveryExpectedDelayExpected delivery time (in days)NoN210Posted to Limonetik
discountAmountAmount of the discount for this order (in the same currency than the order)NoN12

version 21 or higher 

OTAPackageTypeType of package (flight only, journey+accomodation, …). See the table of values Codes - OTAPackageTypeNoN2

version 21 or higher 

OTADestinationCountryCountry code of the destination, in ISO 3166-1 format. See the table of values Codes - countryNoAN2

version 21 or higher 

bookingReferenceBooking reference or Id of the travel fileNoAN100

version 21 or higher 

orderDetailUsed only for origin = MO or TO. NoAN4

version 21 or higher 

orderExtended

Additionnal information about the order.

In JSON format

No

AN in JSON format

{
"deliveryProvider": "deliveryProvider",
"riskLevel": "3",
"giftCardAmount": "4000",
"giftCardCurrency": "978",
"giftCardCount": "2",
"reorderIndicator": "01"
}

version 21 or higher (3DSV2)

orderOTA

Online Travel Agency information.


No

AN in JSON format

See Object OrderOTA

{
  "bookingDate": "2018-12-05",
  "agencyCode": "6565",
  "agencyName": "My Agency",
  "travelPurpose": "1",
  "countryDestination": "ANG",
  "transport": {  },
  "carRental": {...},
  "accomodation": {...}
}

transport : 

{
  "transportMode": "1",
  "travelerList": [...],
  "legList": [...]
}

travelersList :

 {
    "lastName": "France",
    "firstName": "Oliver",
    "birthDate": "1970-01-01",
    "legalDocumentType": "1",
    "legalDocument": "passeportId",
    "loyaltyMemberId": "123453453",
    "loyaltyMemberType": "4"
  },
  {
    "lastName": "France",
    "firstName": "Oliver",
    "birthDate": "1970-01-01",
    "legalDocumentType": "1",
    "legalDocument": "passeportId",
    "loyaltyMemberId": "4537884",
    "loyaltyMemberType": "4"
  }
legsList : 
  {
    "segment": "O",
    "ticketNumber": "T98374556",
    "ticketClass": "Economy",
    "isTicketRestricted": "N",
    "hasTicketInsurance": "N",
    "airlineCode": "LFT",
    "airlineName": "Lufthansa",
    "departureDate": "2019-01-24",
    "departureAirport": "MRS",
    "arrivalDate": "2019-01-25",
    "arrivalAirport": "SFO"
  },
  {
    "segment": "T1",
    "ticketNumber": "T98774556",
    "ticketClass": "Economy",
    "isTicketRestricted": "N",
    "hasTicketInsurance": "N",
    "airlineCode": "LFT",
    "airlineName": "Lufthansa",
    "departureDate": "2019-01-24",
    "departureAirport": "MRS",
    "arrivalDate": "2019-01-25",
    "arrivalAirport": "SFO"
  }
]

version 21 or higher 


Object orderDetail


Field

Description

Required

Format

Condition

Example

ref

Item reference

No

AN50



price

Item price, in the smallest currency unit

No

N12



quantity

Number of Items

No

N5



comment

Comment

No

AN255



category

Category of item

No

AN50


See table values

brand

Product brand

No

AN50


HERMES

subcategory1

Rank 1 subcategory

No

AN50


Watches & Jewellery

subcategory2

Rank 2 subcategory

No

AN50


Jewellery

additionalData

List of specifications required for some payment methods

No

AN255


LegalAge=18;Discount=0105

taxRate

Item tax rate (expressed in hundredths). Format : 1580 for 15.8%

No

N4


1580

sellerName or id of the final sellerNoAN100Release 4.58 - version 21 or highermerchant.com
sellerType

Type of seller.  Values : 

1: Professional
2: Private seller

NoN2Release 4.58 - version 21 or higher1


Object paymentAdditionalList


Field

Description

Mandatory

Format

Example

paymentAdditional

List containing paymentAdditional

Number of items 0 to 100


Object - paymentAdditional



Object paymentAdditional


Field

Description

Mandatory

Type

Example

transaction

Transaction Information

Yes

Object - transaction


paymentPayment InformationYesObject - payment

authorization

Authorization information

Yes

Object - authorization


authentication3DSecure

Information on the 3Dsecure of the operation

No

Object authentication3DSecure


cardBuyer card informationYesObject cardOut
extendedCardBuyer card informationNoObject - extendedCardType


Object wallet


Field

Description

Mandatory

Type

Example

Condition

walletId

The unique identifier of virtual wallet. You must provide Payline with an unique identifier that corresponds to one and only one buyer on your information system. This identifier will be used when you request a payment by virtual wallet.

Yes

AN50



lastNameThe name of the buyer. This information is useful for finding a wallet in the Administration Center.NoAN100

firstName

First name of the buyer

No

AN100



email

The email address of the buyer. Payline will use this information to send a proof of payment to your customer.

No

AN150


shippingAddress

Delivery address of the buyer

No

Object - address



card

Buyer card information

For createWallet either card or transactionID are mandatory.

createWallet:No

other WS : Yes

Object - card

commentCommentsNoAN255

defaultCard used by defaultNoAN1Y or N: Default card
cardStatus

Possible values: 
- EXP: Date expired 
- OPP: card blocked (lost/stolen/...) 
- MAN: manual deactivation 
- INT: internal rules

NoAN3EXP
cardBrand

Indicates the scheme to be used for processing the transaction:


CodeDescription
CBCB
VISAVISA
MASTERCARDMASTERCARD
MAESTROMAESTRO
BCMCBCMC

Not taken into account if the cardBrand given does not fit with the schemes actually handling the card.

NoN1CBfrom version 15


Object address


Field

Description

Required 

Format

Condition

title

Title, see table values

No

AN2


Name

Name or building number

No

AN100


firstName

First name

No

AN100


lastName

Last name

No

AN100


streetNumberStreet numberNoN

street1

Street name

No

AN100


street2

Complement of street name

No

AN100


cityName

City

No

AN40


zipCode

Postal code

No

AN12


country

Country, see table values

No

AN2


phone

Phone

No

AN15


state

State

No

AN100


countyRégionNoAN15
phoneTypePhone category, see table valuesNoN1
email

Specificity of ShippingAdress:

For electronic delivery, the email address to which the merchandise is delivered.

NoAN150

version 21 or higher (3DSV2)

RELEASE 4.58

addressCreateDateCreation date of the address in the merchant's systemNoAN10

version 21 or higher (3DSV2)

RELEASE 4.58




Object card

PAYLANO-5380 - Détails de la demande en cours d'obtention... ÉTAT


Object contractNumberWalletList


Field

Description

Required

Format

Example

Condition

contractNumberWallet

List containing the contract numbers of portfolio. Number of elements 0 to 10.

The Widget mode uses the multi-PDV and multi-contract wallet: the wallet is linked to merchant level.

No



Not used in Widget mode. 

RELEASE 4.53


Object bankAccountData


Field

Description

Mandatory

Format

Example

countryCodeCountry codeNoAN

bankCode

Country code of the account number

No

AN10


accountNumber

Bank number

No

AN


keyIBAN accountNoAN


Used only for ELV



Object subMerchant

Object available in version 18 or higher of web services

Field

Description

Presence (Mandatory/Optional/Conditional)

Type

Conditions and notes

Amex

CBMSCVISAiDEAL

subMerchantId

Identifier of the sub-market (final beneficiary) defined by the payment provider (Payment Facilitator).

M

MM
M

AN15


subMerchantName

Sub-merchant's name : see Payment Facilitator.

M

M


AN15

Limited to 15 char from version 26 or higher (was 25 char in version 18-25)

subMerchantMCC

MCC Code

M

MM

N4


subMerchantSIRET

SIRET (French merchants)

O

MOO

AN14


subMerchantTaxCode

Tax code (US and Canadian merchants)

CC


AN

Mandatory for countries USA and CAN.
It is up to the Payment Facilitator to determine whether that information should be provided or not.

subMerchantStreet

Street name

M

O


AN30


subMerchantCity

City

M

O


AN15


subMerchantZipCode

Postal code

M

O


AN15


subMerchantCountry

Country code

M

M


AN2

 see the list of values

subMerchantState

State

O

O


AN3


subMerchantEmailAddressEmailM



ANS40
subMerchantPhoneNumber

Phone number

M



AN20



Object buyer


Field

Description

Mandatory

Type

Example

Condition
titleTitle of civility, See the table of valuesNoAN1



lastName

Buyer's surname

No

AN50



firstName

Buyer's first name

No

AN50



email

Buyer's email address

No

AN150


Do not put more than 12 consecutive digits (eg test123456789101@test.test )

shippingAdress

Delivery address.

No

Object Address



billingAddress

Billing address

No

Object Address



accountCreateDate

The date of creation of the buyer's account. Format  : dd/mm/yy 

No

AN10

01/04/16


accountAverageAmount

The average amount of this buyer's purchases

No

N10



accountOrderCount

The number of orders placed by this buyer

No

N10



walletId

The virtual wallet identifier of your client.

No

AN50


Mandatory for wallet payment

walletDisplayed

Management of the display of the means of payment of your customer.

To not display the customer payment data, enter the value "none".

To display the customer payment data, the tag must be empty or absent.

No

AN5



walletSecured

Nature of the control added to the payment kinematics WEB.
See the table of values

No

AN12



walletCardInd

Specifies the index of the card to use.

No

AN2

1

The index, default value "1" 

ip

Buyer's IP address. Format : IPv4 or IPv6 

Conditionnal

AN50


Mandatory in a verifyEnrollmentRequest for browser based authentication.

mobilePhone

The mobile number of the buyer

No

N15

0033691666666



customerId

Customer ID

No

AN50

894492568

Clearsale: This data can be an identifier or an email
legalStatusLegal status of the customer: person or companyNoN11Clearsale: see the table of value.
legalDocumentTypeType of document : See the table of values
NoN11
legalDocumentIdentification number of the official documentNoAN100X5446119U
birthDateBirth date. Format: yyyy-mm-dd NoAN10

2016-04-27


fingerprintIDID Device fingerprintNoAN50

deviceFingerprintDeviceFingerPrint information.NoAN
from version 15
isBotDeviceFingerPrint information. Possible value: Y or NNoAN1
from version 15
isIncognitoDeviceFingerPrint information. Possible value: Y or NNoAN1
from version 15
isBehindProxyDeviceFingerPrint information. Possible value: Y or NNoAN1
from version 15
isFromTorDeviceFingerPrint information. Possible value: Y or NNoAN1
from version 15
isEmulatorDeviceFingerPrint information. Possible value: Y or NNoAN1
from version 15
isRootedDeviceFingerPrint information. Possible value: Y or NNoAN1
from version 15
hasTimezoneMismatchDeviceFingerPrint information. Possible value: Y or NNoAN1
from version 15
loyaltyMemberTypeValues : 

0 : No program
1 : Standard/Normal
2 : Silver
3 : Gold/Premium
4 : Platinium
9 : Subscription in progress
99 : Special or Other

NoN20

from version 21 or higher (3DSV2)

RELEASE 4.58

buyerExtendedPast events about buyer. See below for more information about buyerExtendedHistory NoAN
{
  "loyaltyMemberId": "buyerExtLoyMemId",
  "buyerExtendedHistory": {...}
}

from version 21 or higher (3DSV2)

RELEASE 4.58

merchantAuthenticationInformation about cardholder to authenticate to the merchantNoObject merchantAuthentication

from version 21 or higher (3DSV2)

RELEASE 4.58


  • Aucune étiquette