-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #107 from ValeriaHerreraP/docs/PT-5083-account-val…
…idator Docs/pt 5083 account validator
- Loading branch information
Showing
42 changed files
with
2,249 additions
and
2 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Account Validator | ||
|
||
| Ambiente | URL | | ||
| --- | --- | | ||
| Production | `https://account-validator.placetopay.com` | | ||
| Pruebas | `http://qa-account-validator.placetopay.ws` | | ||
| Desarrollo | `http://dev-account-validator.placetopay.ws` | | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,192 @@ | ||
export const sectionMode = 'nav'; | ||
export const description = | ||
'En esta página, encontrarás información sobre la API Crear y consultar el estado de una Sesión.' | ||
|
||
export const apiRefs = ['/api/create-session', '/api/check-session-status']; | ||
|
||
## Crear una Sesión {{ id: 'create-a-session', tag: 'POST', label: '/api/verification/session' }} | ||
|
||
<Row> | ||
<Col> | ||
Este endpoint te permite crear una sesión de verificación de cuenta. | ||
|
||
<ApiReader | ||
path="/api/create-session" | ||
method="post" | ||
api={props.refs} | ||
/> | ||
|
||
</Col> | ||
<Col sticky> | ||
<CodeGroup title="Solicitud" tag="POST" label="/api/session"> | ||
```bash {{ title: 'cURL' }} | ||
curl -X "POST" https://checkout-test.placetopay.com/api/verification/session \ | ||
-H "Content-Type: application/json" \ | ||
-d '{ | ||
"locale": "es_CO", | ||
"auth": { | ||
"login": "5991de4fa93bcd7b28cf5100c25099e1", | ||
"tranKey": "OoamCdSidq121234430nH5x94yxd4=", | ||
"nonce": "NG5vejc2b41xdm8=", | ||
"seed": "2024-04-19T12:06:56-05:00" | ||
}, | ||
"user": { | ||
"name": "John", | ||
"surname": "Doe", | ||
"email": "john_doe@mail.com" | ||
}, | ||
"returnUrl": "https://www.placetopay.com", | ||
"locale": "es_PR" | ||
}' | ||
``` | ||
</CodeGroup> | ||
</Col> | ||
</Row> | ||
|
||
<Row> | ||
<Col> | ||
<ApiReader | ||
path="/api/create-session" | ||
method="post" | ||
type="response" | ||
api={props.refs} | ||
/> | ||
</Col> | ||
|
||
<Col sticky> | ||
<br /> | ||
<CodeGroup title="Respuesta"> | ||
```json {{ title: '200' }} | ||
{ | ||
"status": { | ||
"status": "OK", | ||
"reason": "00", | ||
"message": "string", | ||
"date": "2021-09-21T09:34:48-05:00" | ||
}, | ||
"data": { | ||
"requestId": "9bd89c8d-6097-4d69-8ce9-d9b5ec35d8ea", | ||
"redirectUrl": "https://account-validator.placetopay.com/verification/redirect/9bd89c8d-6097-4d69-8ce9-d9b5ec35d8ea", | ||
"expiresAt": "2024-04-19 17:36:57" | ||
} | ||
} | ||
``` | ||
```json {{ title: '400' }} | ||
{ | ||
"status": { | ||
"status": "FAILED", | ||
"reason": "BR", | ||
"message": "El campo user.email es obligatorio.", | ||
"date": "2024-04-19T20:15:04+00:00" | ||
}, | ||
} | ||
``` | ||
</CodeGroup> | ||
</Col> | ||
</Row> | ||
|
||
--- | ||
|
||
## Consultar estado de sesión {{ id: 'check-session-status', tag: 'POST', label: '/api/verification/query' }} | ||
|
||
Este endpoint te permitirá consultar el estado de la sesión creada. | ||
|
||
<Note> | ||
La información de la cuenta solo se mostrará los primeros 10 minutos, sí solo si, la verificación de cuenta fue exitosa.. | ||
</Note> | ||
|
||
### Posibles estados | ||
|
||
Nombre | Descripción | ||
---------|---------- | ||
APPROVED | La cuenta fue verificada exitosamente. | ||
REJECTED | La verificación de cuenta fue rechazada. | ||
FAILED | Ha ocurrido un error en el sistema. | ||
PENDING | La verificación de cuenta está en proceso. | ||
|
||
|
||
### Razones de estado | ||
|
||
Código | Descripción | ||
---------|---------- | ||
?C | La verificación ha sido cancelada por el usuario. | ||
05 | La verificación ha sido rechazada por razones generales. | ||
BR | Los datos de la solicitud han sido incorrectos. | ||
00 | La verificación ha sido realizada con éxito. | ||
?- | La verificación está en proceso de validación. | ||
38 | Número de intentos agotado. | ||
HX | Ha ocurrido un error en el servicio. | ||
X3 | La información suministrada es inválida. | ||
X5 | Número de seguridad social Inválido. | ||
XN | Número de cuenta inválido. | ||
?* | Pendiente de validación por microdepositos. | ||
|
||
<Row> | ||
<Col> | ||
<ApiReader | ||
path="/api/check-session-status" | ||
method="post" | ||
api={props.refs} | ||
/> | ||
</Col> | ||
|
||
<Col sticky> | ||
<CodeGroup title="Solicitud" tag="POST" label="api/verification/query"> | ||
```bash {{ title: 'cURL' }} | ||
curl -X "POST" https://checkout-test.placetopay.com/api/verification/query \ | ||
-H "Content-Type: application/json" \ | ||
-d '{ | ||
"auth": { | ||
"login": "5991de4fa93bcd7b28cf5100c25099e1", | ||
"tranKey": "OoamCdSidq121234430nH5x94yxd4=", | ||
"nonce": "NG5vejc2b41xdm8=", | ||
"seed": "2024-04-19T12:06:56-05:00" | ||
}, | ||
"requestId": "1f630ff7-9c02-4da4-82d4-d676709acb21" | ||
}' | ||
``` | ||
</CodeGroup> | ||
</Col> | ||
</Row> | ||
|
||
<Row> | ||
<Col> | ||
<ApiReader | ||
path="/api/check-session-status" | ||
method="post" | ||
type="response" | ||
api={props.refs} | ||
/> | ||
</Col> | ||
|
||
<Col sticky> | ||
<br /> | ||
<CodeGroup title="Respuesta"> | ||
```json {{ title: '200' }} | ||
{ | ||
"status": { | ||
"status": "PENDING", | ||
"reason": "?-", | ||
"message": "La solicitud está pendiente", | ||
"date": "2022-08-30T18:33:25+00:00" | ||
}, | ||
"data": { | ||
"requestId": "9bd8e975-c793-4888-afa7-15faee550fa5", | ||
"expiresAt": "2024-04-19 21:12:00" | ||
} | ||
} | ||
``` | ||
```json {{ title: '400' }} | ||
{ | ||
"status": { | ||
"status": "REJECTED", | ||
"reason": "BR", | ||
"message": "There are no results for the query", | ||
"date": "2024-04-19T21:11:09+00:00" | ||
} | ||
} | ||
``` | ||
</CodeGroup> | ||
</Col> | ||
</Row> | ||
|
Oops, something went wrong.