Créer un paiement par carte bancaire enregistrée sans 3DS V2
Note :
Depending on the value of the ThreeDsecurePreference parameter, the mandatory status of 3d secure authentication changes.
For the value ThreeDsecurePreference : 4, 3d Secure authentication will not be asked.
This kind of transactions are only for server to server transactions like subscription, capture…
Headers :
POST /api/[domaine_partenaire]/payins/storedcardpayments
Accept : application/vnd.s-money.v3+json
Content-Type : application/vnd.s-money.v3+json
Authorization : Bearer ACCESS_TOKEN
Requête :
{
"amount":9600,
"fee":{
"amountWithVAT":400,
"VAT":20
},
"ThreeDsecurePreference":3,
"orderId":"orderabc",
"accountId":{
"appaccountid":" user-abc "
},
"card":{
"appCardId":"card123"
},
"ismine":true,
"message":"orderID: orderabc"
}
Response :
HTTP/1.1 201 CREATED
{
"Id":517,
"OrderId":"orderabc",
"Amount":9600,
"fee":{
"amountWithVAT":400,
"VAT":20
},
"Status":1,
"ThreeDsecurePreference":3,
"accountId":{
"id":87,
"appaccountid":"123",
"displayname":"Jean Dupont",
"href":"/api/accounts/123"
},
"card":{
"appcardid":"card123",
"href":"/api/cards/card123"
},
"IsMine":false,
"operationdate":"2018-11-12T15:14:54.943324+01:00",
"Message":"commande orderID:orderabc",
"ErrorCode":0,
"ExtraResults":{
"threedsecure":null,
"threedsecureauthstatus":null,
"threedsecuresignaturestatus":null,
"threedsecureglobalstatus":null,
"ThreeDsCardEnrolled":null,
"ExecCode":"0000",
"ExecMessage":"Successful operation",
"warrantyresult":false,
"3dsecureversion":null,
"3dsecuremode":null,
"bankauthresult":null
},
"ExtraParameters":null
}