-
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 #97 from placetopay-org/feature/checkout-expiration
Feature/checkout expiration
- Loading branch information
Showing
7 changed files
with
75 additions
and
4 deletions.
There are no files selected for viewing
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
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,26 @@ | ||
export const description = | ||
'La propiedad expiration se utiliza para definir el período durante el cual una sesión puede ser procesada' | ||
|
||
# Fecha de expiración | ||
|
||
Cuando se envía la propiedad `CreateSessionRequest.expiration` en la creación de una sesión esta define la fecha límite en la que una sesión debe completarse. | ||
|
||
- **Formato Requerido**: La propiedad expiration debe ser un string en formato de timestamp válido conforme al estándar `ISO 8601`. | ||
Ejemplo: 2023-07-17T13:12:44-05:00. | ||
- **Tiempo Mínimo**: La fecha y hora establecidas en expiration deben estar al menos a **5 minutos** después del momento en que se crea la sesión. | ||
|
||
<Note> | ||
La propiedad expiration es opcional. Si no se proporciona, el sistema asignará automáticamente un tiempo de expiración predeterminado de **30 minutes** desde la creación de la sesión. | ||
</Note> | ||
|
||
```json | ||
{ | ||
"locale": "es_CO", | ||
"auth": ... | ||
"payment": { | ||
... | ||
} | ||
"expiration": "2024-09-03T12:23:39-05:00", | ||
... | ||
} | ||
``` |
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,25 @@ | ||
export const description = | ||
'The expiration property is used to define the period during which a session can be processed' | ||
|
||
# Expiration Date | ||
When the `CreateSessionRequest.expiration` property is sent during session creation, it defines the deadline by which a session must be completed. | ||
|
||
- **Required Format**: The expiration property must be a string in a valid timestamp format according to the `ISO 8601` standard. | ||
Example: 2023-07-17T13:12:44-05:00. | ||
- **Minimum Time**: The date and time specified in expiration must be at least **5 minutes** after the session is created. | ||
|
||
<Note> | ||
The `expiration` property is optional. If not provided, the system will automatically assign a default expiration time of **30 minutes** from the session creation. | ||
</Note> | ||
|
||
```json | ||
{ | ||
"locale": "es_CO", | ||
"auth": ... | ||
"payment": { | ||
... | ||
} | ||
"expiration": "2024-09-03T12:23:39-05:00", | ||
... | ||
} | ||
``` |