Skip to content
This repository was archived by the owner on Jan 15, 2021. It is now read-only.

Commit b2c3671

Browse files
isabellaioatamanroman
authored andcommitted
Add confirmation of funds to developer portal
1 parent fead1b8 commit b2c3671

File tree

3 files changed

+61
-0
lines changed

3 files changed

+61
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ target/
1212
node_modules/
1313
npm-debug.log
1414
ui/coverage/
15+
service/logs
1516

1617
### STS ###
1718
.apt_generated

docs/de/developer-portal-page.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,37 @@ Um den Transaction Status eines Payments abzufragen, fügen Sie Ihre Payment-Id
225225
| :------------- | :--------------------- | :--------- | :----------------- |
226226
| PSU-Successful | DE11760365688833114935 | finalised | ACTC/ACSP |
227227

228+
229+
### Confirmation of Funds
230+
231+
Confirmation of Funds überprüft, ob der zu überweisende Betrag auf einem Konto vorhanden ist. Wenn der Kontostand ausreichend ist, wird "true" ausgegeben, anderenfalls wird "false" ausgegeben.
232+
233+
Der nachfolgende Code beschreibt einen beispielhaften cURL Command, der Confirmation of Funds für PSU "PSU-Successful" durchführt:
234+
235+
`POST https://sandbox-api.dev.adorsys.de/v1/funds-confirmations`
236+
237+
```sh
238+
curl -v "https://sandbox-api.dev.adorsys.de/v1/payments/sepa-credit-transfers" \
239+
-H "accept: application/json" \
240+
-H "X-Request-ID: 99391c7e-ad88-49ec-a2ad-99ddcb1f7721" \
241+
-H "Content-Type: application/json" \
242+
--cert certificate.pem \
243+
--key private.key \
244+
-d '{
245+
"cardNumber": "CARD-NUMBER",
246+
"payee": "Testuser",
247+
"account": {
248+
"currency": "EUR",
249+
"iban": "DE11760365688833114935"
250+
},
251+
"instructedAmount": {
252+
"currency": "EUR",
253+
"amount": "15"
254+
}
255+
}'
256+
```
257+
258+
228259
### Erstellung eines Dedicated Consent
229260

230261
Um Accounts abfragen zu können, ist es vorab notwendig einen sogenannten Dedicated Consent anzulegen. Dabei handelt es sich um eine Art Einverständniserklärung mit einer definierten Gültigkeit, die es erlaubt je nach Art des Consents Accounts für einen festgelegten Gültigkeitszeitraum abzufragen. Um einen Dedicated Consent anzulegen, ersetzen Sie die IBAN in Ihrem Request mit der IBAN.Ihres gewünschten PSU. Den Consent können Sie, wie im vorherigen Absatz beschrieben, mit dem SCA Redirect-Link authorisieren.

docs/en/developer-portal-page.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,35 @@ Payment Status Endpoint.
271271
| :------------- | :--------------------- | :--------- | :----------------- |
272272
| PSU-Successful | DE11760365688833114935 | finalised | ACTC/ACSP |
273273

274+
### Confirmation of Funds
275+
276+
Confirmation of funds checks if the requested amount is available on an account. If the amount is sufficient, it returns "true", otherwise it returns "false".
277+
278+
The following code snippet is an example cURL command which performs confirmation of funds for PSU "PSU-Successful":
279+
280+
`POST https://sandbox-api.dev.adorsys.de/v1/funds-confirmations`
281+
282+
```sh
283+
curl -v "https://sandbox-api.dev.adorsys.de/v1/payments/sepa-credit-transfers" \
284+
-H "accept: application/json" \
285+
-H "X-Request-ID: 99391c7e-ad88-49ec-a2ad-99ddcb1f7721" \
286+
-H "Content-Type: application/json" \
287+
--cert certificate.pem \
288+
--key private.key \
289+
-d '{
290+
"cardNumber": "CARD-NUMBER",
291+
"payee": "Testuser",
292+
"account": {
293+
"currency": "EUR",
294+
"iban": "DE11760365688833114935"
295+
},
296+
"instructedAmount": {
297+
"currency": "EUR",
298+
"amount": "15"
299+
}
300+
}'
301+
```
302+
274303
### Dedicated Consent Creation
275304

276305
In order to create a dedicated consent, replace the Iban in your request with the

0 commit comments

Comments
 (0)