-
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 #37 from placetopay-org/feature/gateway-doc
Feature/gateway doc
- Loading branch information
Showing
46 changed files
with
10,215 additions
and
7 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.
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
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,139 @@ | ||
# Airlines | ||
|
||
## Codes | ||
|
||
When dispersion transactions are made to airlines, these are the agreement codes for each of them. | ||
|
||
Code | Airline | ||
-------|---------- | ||
2 | AIR CANADA Internacional | ||
6 | AEROL. ARGENTINAS Internacional | ||
7 | SERVINCLUIDOS Nacional | ||
8 | SERVINCLUIDOS Internacional | ||
10 | AEROGAL Internacional | ||
11 | COPA DOMESTICO Nacional | ||
18 | AIR FRANCE Internacional | ||
23 | SATENA VISA DISTRIBUCION Nacional | ||
26 | American Airlines | ||
29 | AVIANCA Nacional | ||
30 | AVIANCA Internacional | ||
31 | MAYATUR Nacional | ||
32 | MAYATUR Internacional | ||
33 | COPA INTERNACIONAL | ||
36 | CUBANA DE AVIACION Internacional | ||
38 | IBERIA Internacional | ||
40 | QANTAS Internacional | ||
42 | LACSA Internacional | ||
43 | OCTOPUS TRAVEL Nacional | ||
44 | OCTOPUS TRAVEL Internacional | ||
45 | EASYFLY Nacional | ||
50 | SANTA BARBARA AIRLINES Internacional | ||
53 | SATENA Nacional | ||
56 | DUTCH ANTILLES EXPR Internacional | ||
58 | VARIG Internacional | ||
63 | AVIANCA DESKUBRA Nacional | ||
64 | AVIANCA DESKUBRA Internacional | ||
71 | AVIATUR S.A. DAV NAL Nacional | ||
72 | AVIATUR S.A. DAV INT. Internacional | ||
74 | ASERCA AIRLINES Internacional | ||
78 | DELTA Internacional | ||
84 | TRANS AMERICAN Internacional | ||
86 | LUFTHANSA Internacional | ||
87 | LAN AIRLINES Nacional | ||
88 | LAN AIRLINES Internacional | ||
91 | ADA Nacional | ||
98 | AIR EUROPA Internacional | ||
99 | AGENCIAS DE VIAJES - T.A. Internacional | ||
100 | AEROMEXICO Internacional | ||
101 | CONVIASA Internacional | ||
103 | INSEL AIR Internacional | ||
104 | UNITED AIRLINES Internacional | ||
105 | JETBLUE AIRWAYS Internacional | ||
106 | TACA AIRLINES Internacional | ||
108 | KOREAN AIR LINES Internacional | ||
109 | TAME LINEA AEREA DEL ECUADOR Internacional | ||
110 | AIR PANAMA Suc.Col Internacional | ||
111 | AVIAREPS COLOMBIA Internacional | ||
112 | AVIA MARKETING LTDA NAL Nacional | ||
113 | AVIA MARKETING LTDA INT Internacional | ||
114 | ABC AEROLINEAS SA DE CV Internacional | ||
115 | KLM HOLANDESA DE AVIACION Internacional | ||
116 | OCEANAIR LINHAS AEREAS S.A Internacional | ||
117 | TURKISH AIRLINES | ||
119 | TAP PORTUGAL | ||
120 | ASIANA AIRLINES | ||
121 | ETHIOPIAN AIRLINES | ||
122 | EMIRATES | ||
123 | SINGAPORE AIRLINES | ||
124 | Viva Air Colombia | ||
125 | Viva Air Perú | ||
126 | SKY Airline Nacional | ||
127 | SKY Airline Internacional | ||
|
||
## Example of an airline dispersal request | ||
|
||
```json | ||
{ | ||
... | ||
"payment": { | ||
"reference": "ON1434012-PN1433129", | ||
"description": "Vuelo 50 AV2020", | ||
"amount": { | ||
"taxes": [ | ||
{ | ||
"kind": "airportTax", | ||
"amount": 63 | ||
}, | ||
{ | ||
"kind": "valueAddedTax", | ||
"amount": 158.47 | ||
} | ||
], | ||
"currency": "USD", | ||
"total": 1161.12 | ||
}, | ||
"dispersion": [ | ||
{ | ||
"agreement": 29, | ||
"agreementType": "AIRLINE", | ||
"amount": { | ||
"taxes": [ | ||
{ | ||
"kind": "airportTax", | ||
"amount": 63 | ||
}, | ||
{ | ||
"kind": "valueAddedTax", | ||
"amount": 142.5 | ||
} | ||
], | ||
"currency": "USD", | ||
"total": 1055.5 | ||
} | ||
}, | ||
{ | ||
"agreement": null, | ||
"agreementType": "MERCHANT", | ||
"amount": { | ||
"taxes": [ | ||
{ | ||
"kind": "valueAddedTax", | ||
"amount": 15.97 | ||
} | ||
], | ||
"currency": "USD", | ||
"total": 105.62 | ||
} | ||
} | ||
] | ||
}, | ||
"instrument": { | ||
"card": { | ||
"number": "5180300000000005", | ||
"expiration": "12/24", | ||
"cvv": "123" | ||
} | ||
} | ||
... | ||
} | ||
``` |
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,96 @@ | ||
export const apiRefs = ['/gateway/mpi/lookup', '/gateway/mpi/query'] | ||
|
||
<MissingTraductionBanner /> | ||
|
||
## 3DS Lookup {{ id: 'mpi-lookup-request', tag: 'POST', label: '/gateway/mpi/lookup' }} | ||
|
||
<Row> | ||
<Col> | ||
Realiza el proceso inicial de validación de 3DS retornando los datos para que el usuario pueda continuar con el proceso | ||
|
||
<ApiReader | ||
path="/gateway/mpi/lookup" | ||
method="post" | ||
api={props.refs} | ||
/> | ||
</Col> | ||
|
||
<Col sticky> | ||
<CodeGroup title="Solicitud" tag="POST" label="/gateway/mpi/lookup"> | ||
```bash {{ title: 'cURL' }} | ||
curl -X "POST" https://api-co-dev.placetopay.ws/gateway/mpi/lookup \ | ||
-H "Content-Type: application/json" \ | ||
-d '{ | ||
"locale": "es_CO", | ||
"auth": { | ||
"login":"c51ce410c124a10e0db5e4b97fc2af39", | ||
"tranKey":"VQOcRcVH2DfL6Y4B4SaK6yhoH/VOUveZ3xT16OQnvxE=", | ||
"nonce":"NjE0OWVkODgwYjNhNw==", | ||
"seed":"2021-09-21T09:34:48-05:00" | ||
}, | ||
"payment": { | ||
"reference": "1122334455", | ||
"description": "Testing Payment", | ||
"amount": { | ||
"currency": "USD", | ||
"total": 100 | ||
} | ||
}, | ||
"instrument": { | ||
"card": { | ||
"number": "4110760000000008", | ||
"expiration": "12/20", | ||
"cvv": "123" | ||
} | ||
}, | ||
"returnUrl": "https://www.your-site.com/return?reference=1234567890" | ||
}' | ||
``` | ||
</CodeGroup> | ||
</Col> | ||
</Row> | ||
|
||
--- | ||
|
||
## 3DS Query {{ id: 'mpi-query-request', tag: 'POST', label: '/gateway/mpi/query' }} | ||
|
||
<Row> | ||
<Col> | ||
Una vez el usuario ha terminado el proceso de autenticación en 3DS se usa este endpoint para obtener el resultado de su operación | ||
|
||
> ### Nota Importante | ||
> | ||
> *Al consumir este servicio **NO** se está autenticando la transacción por defecto, se debe tomar de la respuesta el valor de `data` y enviarlo en el `instrument.threeDS`* | ||
|
||
<ApiReader | ||
path="/gateway/mpi/query" | ||
method="post" | ||
api={props.refs} | ||
/> | ||
</Col> | ||
|
||
<Col sticky> | ||
<CodeGroup title="Solicitud" tag="POST" label="/gateway/mpi/query"> | ||
```bash {{ title: 'cURL' }} | ||
curl -X "POST" https://api-co-dev.placetopay.ws/gateway/mpi/query \ | ||
-H "Content-Type: application/json" \ | ||
-d '{ | ||
"auth": { | ||
"login":"c51ce410c124a10e0db5e4b97fc2af39", | ||
"tranKey":"VQOcRcVH2DfL6Y4B4SaK6yhoH/VOUveZ3xT16OQnvxE=", | ||
"nonce":"NjE0OWVkODgwYjNhNw==", | ||
"seed":"2021-09-21T09:34:48-05:00" | ||
}, | ||
"instrument": { | ||
"card": { | ||
"number": "4110760000000008", | ||
"expiration": "12/20", | ||
"cvv": "123" | ||
} | ||
}, | ||
"id": "1" | ||
}' | ||
``` | ||
</CodeGroup> | ||
</Col> | ||
</Row> |
Oops, something went wrong.