diff --git a/src/pages/checkout/api/reference/gateway-information.mdx b/src/pages/checkout/api/reference/gateway-information.mdx
index 40c2aea..014f45e 100644
--- a/src/pages/checkout/api/reference/gateway-information.mdx
+++ b/src/pages/checkout/api/reference/gateway-information.mdx
@@ -16,38 +16,38 @@ export const apiRefs = ['/api/gateway/information']
- ```bash {{ title: 'cURL' }}
- curl -X "POST" https://checkout-test.placetopay.com/api/gateway/information \
- -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": "Prueba",
- "amount": {
- "currency": "USD",
- "total": 100
- }
- },
- "instrument": {
- "card": {
- "number": "4110760000000008",
- },
- "token" : {
- "token" : "f517475fd94ae67c84fe06593aaff5798ebf3a75664c2b6816024eb297be321e",
- },
- ...
- },
- "ipAddress": "127.0.0.1",
- "userAgent": "Testing"
- }'
- ```
+```bash {{ title: 'cURL' }}
+curl -X "POST" https://checkout-test.placetopay.com/api/gateway/information \
+-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": "Prueba",
+ "amount": {
+ "currency": "USD",
+ "total": 100
+ }
+ },
+ "instrument": {
+ "card": {
+ "number": "4110760000000008",
+ },
+ "token" : {
+ "token" : "f517475fd94ae67c84fe06593aaff5798ebf3a75664c2b6816024eb297be321e",
+ },
+ ...
+ },
+ "ipAddress": "127.0.0.1",
+ "userAgent": "Testing"
+}'
+```
@@ -64,85 +64,85 @@ export const apiRefs = ['/api/gateway/information']
- ```json {{ title: '200' }}
- {
- "status": {
- "status": "OK",
- "reason": "00",
- "message": "La petición se ha procesado correctamente",
- "date": "2021-09-21T09:26:11-05:00"
- },
- "provider": "CREDIBANCO",
- "serviceCode": "CR_VS",
- "cardType": "C",
- "cardTypes": [
- "C",
- "R",
- "A"
- ],
- "displayInterest": false,
- "requireOtp": false,
- "requireCvv2": true,
- "threeDS": "optional",
- "credits": [
- {
- "description": "Cuotas",
- "code": "0",
- "groupCode": "C",
- "type": "00",
- "installments": [
- 1,
- 2,
- 3,
- 4,
- 5,
- 6,
- 7,
- 8,
- 9,
- 10,
- 11,
- 12,
- 13,
- 14,
- 15,
- 16,
- 17,
- 18,
- 19,
- 20,
- 21,
- 22,
- 23,
- 24,
- 25,
- 26,
- 27,
- 28,
- 29,
- 30,
- 31,
- 32,
- 33,
- 34,
- 35,
- 36
- ]
- }
- ]
- }
- ```
- ```json {{ title: '400' }}
+```json {{ title: '200' }}
+ {
+ "status": {
+ "status": "OK",
+ "reason": "00",
+ "message": "La petición se ha procesado correctamente",
+ "date": "2021-09-21T09:26:11-05:00"
+ },
+ "provider": "CREDIBANCO",
+ "serviceCode": "CR_VS",
+ "cardType": "C",
+ "cardTypes": [
+ "C",
+ "R",
+ "A"
+ ],
+ "displayInterest": false,
+ "requireOtp": false,
+ "requireCvv2": true,
+ "threeDS": "optional",
+ "credits": [
{
- "status": {
- "status": "FAILED",
- "reason": "XN",
- "reason": 400,
- "message": "El token usado es inválido",
- "date": "2021-11-30T15:12:25-05:00"
- },
+ "description": "Cuotas",
+ "code": "0",
+ "groupCode": "C",
+ "type": "00",
+ "installments": [
+ 1,
+ 2,
+ 3,
+ 4,
+ 5,
+ 6,
+ 7,
+ 8,
+ 9,
+ 10,
+ 11,
+ 12,
+ 13,
+ 14,
+ 15,
+ 16,
+ 17,
+ 18,
+ 19,
+ 20,
+ 21,
+ 22,
+ 23,
+ 24,
+ 25,
+ 26,
+ 27,
+ 28,
+ 29,
+ 30,
+ 31,
+ 32,
+ 33,
+ 34,
+ 35,
+ 36
+ ]
}
- ```
+ ]
+ }
+```
+```json {{ title: '400' }}
+{
+ "status": {
+ "status": "FAILED",
+ "reason": "XN",
+ "reason": 400,
+ "message": "El token usado es inválido",
+ "date": "2021-11-30T15:12:25-05:00"
+ },
+}
+```
\ No newline at end of file
diff --git a/src/pages/checkout/api/reference/payment.mdx b/src/pages/checkout/api/reference/payment.mdx
index 1ea97d9..93dc6a8 100644
--- a/src/pages/checkout/api/reference/payment.mdx
+++ b/src/pages/checkout/api/reference/payment.mdx
@@ -26,19 +26,19 @@ El endpoint de reembolsos permite revertir una transacción aprobada. Ver más e
- ```bash {{ title: 'cURL' }}
- curl -X "POST" https://checkout-test.placetopay.com/api/session/000000 \
- -H "Content-Type: application/json" \
- -d '{
- "auth": {
- "login": "c51ce410c124a10e0db5e4b97fc2af39",
- "tranKey": "VQOcRcVH2DfL6Y4B4SaK6yhoH/VOUveZ3xT16OQnvxE=",
- "nonce": "NjE0OWVkODgwYjNhNw==",
- "seed": "2021-09-21T09:34:48-05:00"
- },
- "internalReference": 1
- }'
- ```
+```bash {{ title: 'cURL' }}
+curl -X "POST" https://checkout-test.placetopay.com/api/session/000000 \
+-H "Content-Type: application/json" \
+-d '{
+ "auth": {
+ "login": "c51ce410c124a10e0db5e4b97fc2af39",
+ "tranKey": "VQOcRcVH2DfL6Y4B4SaK6yhoH/VOUveZ3xT16OQnvxE=",
+ "nonce": "NjE0OWVkODgwYjNhNw==",
+ "seed": "2021-09-21T09:34:48-05:00"
+ },
+ "internalReference": 1
+}'
+```
@@ -55,121 +55,121 @@ El endpoint de reembolsos permite revertir una transacción aprobada. Ver más e
- ```json {{ title: '200' }}
- {
- "status": {
- "status": "APPROVED",
- "reason": "00",
- "message": "Aprobada",
- "date": "2021-12-07T16:01:19-05:00"
- },
- "payment": {
- "status": {
- "status": "APPROVED",
- "reason": "00",
- "message": "Aprobada",
- "date": "2021-12-07T16:01:18-05:00"
- },
- "internalReference": 1,
- "paymentMethod": "visa",
- "paymentMethodName": "Visa",
- "issuerName": "JPMORGAN CHASE BANK, N.A.",
- "amount": {
- "from": {
- "currency": "USD",
- "total": 100
- },
- "to": {
- "currency": "USD",
- "total": 100
- },
- "factor": 1
- },
- "authorization": "123456",
- "reference": "12345",
- "receipt": "230955511860",
- "franchise": "PS_VS",
- "refunded": false,
- "processorFields": [
- {
- "keyword": "merchantCode",
- "value": "1465675",
- "displayOn": "none"
- },
- {
- "keyword": "terminalNumber",
- "value": "00990099",
- "displayOn": "none"
- },
- {
- "keyword": "credit",
- "value": {
- "code": "1",
- "type": "00",
- "groupCode": "C",
- "installments": 1
- },
- "displayOn": "none"
- },
- {
- "keyword": "totalAmount",
- "value": 52,
- "displayOn": "none"
- },
- {
- "keyword": "interestAmount",
- "value": 0,
- "displayOn": "none"
- },
- {
- "keyword": "installmentAmount",
- "value": 0,
- "displayOn": "none"
- },
- {
- "keyword": "iceAmount",
- "value": 0,
- "displayOn": "none"
- },
- {
- "keyword": "bin",
- "value": "411111",
- "displayOn": "none"
- },
- {
- "keyword": "expiration",
- "value": "1223",
- "displayOn": "none"
- },
- {
- "keyword": "lastDigits",
- "value": "1111",
- "displayOn": "none"
- },
- {
- "keyword": "id",
- "value": "a10fe0690cfe557283310ba90746e159",
- "displayOn": "none"
- },
- {
- "keyword": "b24",
- "value": "00",
- "displayOn": "none"
- }
- ]
- }
- }
- ```
- ```json {{ title: '401' }}
- {
- "status": {
- "status": "FAILED",
- "reason": 401,
- "message": "Autenticación fallida 102",
- "date": "2021-11-30T15:12:25-05:00"
- },
- }
- ```
+```json {{ title: '200' }}
+{
+ "status": {
+ "status": "APPROVED",
+ "reason": "00",
+ "message": "Aprobada",
+ "date": "2021-12-07T16:01:19-05:00"
+ },
+ "payment": {
+ "status": {
+ "status": "APPROVED",
+ "reason": "00",
+ "message": "Aprobada",
+ "date": "2021-12-07T16:01:18-05:00"
+ },
+ "internalReference": 1,
+ "paymentMethod": "visa",
+ "paymentMethodName": "Visa",
+ "issuerName": "JPMORGAN CHASE BANK, N.A.",
+ "amount": {
+ "from": {
+ "currency": "USD",
+ "total": 100
+ },
+ "to": {
+ "currency": "USD",
+ "total": 100
+ },
+ "factor": 1
+ },
+ "authorization": "123456",
+ "reference": "12345",
+ "receipt": "230955511860",
+ "franchise": "PS_VS",
+ "refunded": false,
+ "processorFields": [
+ {
+ "keyword": "merchantCode",
+ "value": "1465675",
+ "displayOn": "none"
+ },
+ {
+ "keyword": "terminalNumber",
+ "value": "00990099",
+ "displayOn": "none"
+ },
+ {
+ "keyword": "credit",
+ "value": {
+ "code": "1",
+ "type": "00",
+ "groupCode": "C",
+ "installments": 1
+ },
+ "displayOn": "none"
+ },
+ {
+ "keyword": "totalAmount",
+ "value": 52,
+ "displayOn": "none"
+ },
+ {
+ "keyword": "interestAmount",
+ "value": 0,
+ "displayOn": "none"
+ },
+ {
+ "keyword": "installmentAmount",
+ "value": 0,
+ "displayOn": "none"
+ },
+ {
+ "keyword": "iceAmount",
+ "value": 0,
+ "displayOn": "none"
+ },
+ {
+ "keyword": "bin",
+ "value": "411111",
+ "displayOn": "none"
+ },
+ {
+ "keyword": "expiration",
+ "value": "1223",
+ "displayOn": "none"
+ },
+ {
+ "keyword": "lastDigits",
+ "value": "1111",
+ "displayOn": "none"
+ },
+ {
+ "keyword": "id",
+ "value": "a10fe0690cfe557283310ba90746e159",
+ "displayOn": "none"
+ },
+ {
+ "keyword": "b24",
+ "value": "00",
+ "displayOn": "none"
+ }
+ ]
+ }
+}
+```
+```json {{ title: '401' }}
+{
+ "status": {
+ "status": "FAILED",
+ "reason": 401,
+ "message": "Autenticación fallida 102",
+ "date": "2021-11-30T15:12:25-05:00"
+ },
+}
+```
@@ -190,24 +190,56 @@ El endpoint de reembolsos permite revertir una transacción aprobada. Ver más e
- ```bash {{ title: 'cURL' }}
- curl -X "POST" https://checkout-test.placetopay.com/api/transaction \
- -H "Content-Type: application/json" \
- -d "{
- "auth": {
- "login": "c51ce410c124a10e0db5e4b97fc2af39",
- "tranKey": "VQOcRcVH2DfL6Y4B4SaK6yhoH/VOUveZ3xT16OQnvxE=",
- "nonce": "NjE0OWVkODgwYjNhNw==",
- "seed": "2021-09-21T09:34:48-05:00"
- },
- "internalReference": 640,
- "amount": {
- "currency": "USD",
- "total": "500"
- },
- "action": "checkout"
- }"
- ```
+```bash {{ title: 'CHECKOUT' }}
+curl -X "POST" https://checkout-test.placetopay.com/api/transaction \
+ -H "Content-Type: application/json" \
+ -d "{
+ "auth": {
+ "login": "c51ce410c124a10e0db5e4b97fc2af39",
+ "tranKey": "VQOcRcVH2DfL6Y4B4SaK6yhoH/VOUveZ3xT16OQnvxE=",
+ "nonce": "NjE0OWVkODgwYjNhNw==",
+ "seed": "2021-09-21T09:34:48-05:00"
+ },
+ "internalReference": 640,
+ "amount": {
+ "currency": "USD",
+ "total": "500"
+ },
+ "action": "checkout"
+ }"
+```
+```bash {{ title: 'REAUTHORIZATION' }}
+curl -X "POST" https://checkout-test.placetopay.com/api/transaction \
+ -H "Content-Type: application/json" \
+ -d "{
+ "auth": {
+ "login": "c51ce410c124a10e0db5e4b97fc2af39",
+ "tranKey": "VQOcRcVH2DfL6Y4B4SaK6yhoH/VOUveZ3xT16OQnvxE=",
+ "nonce": "NjE0OWVkODgwYjNhNw==",
+ "seed": "2021-09-21T09:34:48-05:00"
+ },
+ "internalReference": 640,
+ "amount": {
+ "currency": "USD",
+ "total": "500"
+ },
+ "action": "reauthorization"
+ }"
+```
+```bash {{ title: 'Reverse' }}
+curl -X "POST" https://checkout-test.placetopay.com/api/transaction \
+ -H "Content-Type: application/json" \
+ -d "{
+ "auth": {
+ "login": "c51ce410c124a10e0db5e4b97fc2af39",
+ "tranKey": "VQOcRcVH2DfL6Y4B4SaK6yhoH/VOUveZ3xT16OQnvxE=",
+ "nonce": "NjE0OWVkODgwYjNhNw==",
+ "seed": "2021-09-21T09:34:48-05:00"
+ },
+ "internalReference": 640,
+ "action": "reverse"
+ }"
+```
@@ -224,206 +256,206 @@ El endpoint de reembolsos permite revertir una transacción aprobada. Ver más e
- ```json {{ title: 'Default' }}
- {
- "reference": "12345",
- "description": "Prueba de pago",
- "amount": {
- "currency": "COP",
- "total": 2000,
- "taxes": [
- {
- "kind": "valueAddedTax",
- "amount": 1000,
- "base": 0
- }
- ],
- "details": [
- {
- "kind": "discount",
- "amount": 1000
- }
- ]
- },
- "allowPartial": false,
- "shipping": {
- "document": "1122334455",
- "documentType": "CC",
- "name": "John",
- "surname": "Doe",
- "company": "Evertec",
- "email": "johndoe@app.com",
- "mobile": "+5731111111111",
- "address": {
- "street": "Calle falsa 123",
- "city": "Medellín",
- "state": "Poblado",
- "postalCode": "55555",
- "country": "Colombia",
- "phone": "+573111111111"
- }
- },
- "items": [
- {
- "sku": "12345",
- "name": "product_1",
- "category": "physical",
- "qty": "1",
- "price": 1000,
- "tax": 0
- }
- ],
- "fields": [
- {
- "keyword": "_test_field_value_",
- "value": "_test_field_",
- "displayOn": "approved"
- }
- ],
- "recurring": {
- "periodicity": "D",
- "interval": "1",
- "nextPayment": "2019-08-24",
- "maxPeriods": 1,
- "dueDate ": "2019-09-24",
- "notificationUrl ": "https://checkout.placetopay.com"
- },
- "subscribe": false,
- "dispersion": [
- {
- "agreement": "1299",
- "agreementType": "MERCHANT",
- "amount": {
- "currency": "USD",
- "total": 200
- }
- }
- ],
- "modifiers": [
- {
- "type": "FEDERAL_GOVERNMENT",
- "code": 17934,
- "additional": {
- "invoice": "123345"
- }
- }
- ]
- }
- ```
- ```json {{ title: 'Checkout' }}
- {
- "status": {
- "status": "APPROVED",
- "reason": "00",
- "message": "Aprobada",
- "date": "2021-11-30T09:36:00-05:00"
- },
- "payment": {
- "status": {
- "status": "APPROVED",
- "reason": "00",
- "message": "Aprobada",
- "date": "2021-11-30T09:35:59-05:00"
- },
- "internalReference": 643,
- "paymentMethod": "visa",
- "paymentMethodName": "Visa",
- "issuerName": "JPMORGAN CHASE BANK, N.A.",
- "amount": {
- "from": {
- "currency": "USD",
- "total": 500
- },
- "to": {
- "currency": "USD",
- "total": 500
- },
- "factor": 1
- },
- "authorization": "550044",
- "reference": "1122334455",
- "receipt": "499435368733",
- "franchise": "PS_VS",
- "refunded": false
- }
- }
- ```
- ```json {{ title: 'Reauthorization'}}
- {
- "status": {
- "status": "APPROVED",
- "reason": "00",
- "message": "Aprobada",
- "date": "2021-11-30T09:26:50-05:00"
- },
- "payment": {
- "status": {
- "status": "APPROVED",
- "reason": "00",
- "message": "Aprobada",
- "date": "2021-11-30T09:26:49-05:00"
- },
- "internalReference": 642,
- "paymentMethod": "visa",
- "paymentMethodName": "Visa",
- "issuerName": "JPMORGAN CHASE BANK, N.A.",
- "amount": {
- "from": {
- "currency": "USD",
- "total": 500
- },
- "to": {
- "currency": "USD",
- "total": 500
- },
- "factor": 1
- },
- "authorization": "883327",
- "reference": "1122334455",
- "receipt": "657093859996",
- "franchise": "PS_VS",
- "refunded": false
- }
- }
- ```
- ```json {{ title: 'Reverse' }}
- {
- "status": {
- "status": "APPROVED",
- "reason": "00",
- "message": "Aprobada",
- "date": "2021-11-30T09:37:46-05:00"
- },
- "payment": {
- "status": {
- "status": "APPROVED",
- "reason": "00",
- "message": "Aprobada",
- "date": "2021-11-30T09:37:46-05:00"
- },
- "internalReference": 644,
- "paymentMethod": "visa",
- "paymentMethodName": "Visa",
- "issuerName": "JPMORGAN CHASE BANK, N.A.",
- "amount": {
- "from": {
- "currency": "USD",
- "total": 500
- },
- "to": {
- "currency": "USD",
- "total": 1000
- },
- "factor": 1
- },
- "authorization": "550044",
- "reference": "1122334455",
- "receipt": "499435368733",
- "franchise": "PS_VS",
- "refunded": false
- }
- }
- ```
+```json {{ title: 'Default' }}
+{
+ "reference": "12345",
+ "description": "Prueba de pago",
+ "amount": {
+ "currency": "COP",
+ "total": 2000,
+ "taxes": [
+ {
+ "kind": "valueAddedTax",
+ "amount": 1000,
+ "base": 0
+ }
+ ],
+ "details": [
+ {
+ "kind": "discount",
+ "amount": 1000
+ }
+ ]
+ },
+ "allowPartial": false,
+ "shipping": {
+ "document": "1122334455",
+ "documentType": "CC",
+ "name": "John",
+ "surname": "Doe",
+ "company": "Evertec",
+ "email": "johndoe@app.com",
+ "mobile": "+5731111111111",
+ "address": {
+ "street": "Calle falsa 123",
+ "city": "Medellín",
+ "state": "Poblado",
+ "postalCode": "55555",
+ "country": "Colombia",
+ "phone": "+573111111111"
+ }
+ },
+ "items": [
+ {
+ "sku": "12345",
+ "name": "product_1",
+ "category": "physical",
+ "qty": "1",
+ "price": 1000,
+ "tax": 0
+ }
+ ],
+ "fields": [
+ {
+ "keyword": "_test_field_value_",
+ "value": "_test_field_",
+ "displayOn": "approved"
+ }
+ ],
+ "recurring": {
+ "periodicity": "D",
+ "interval": "1",
+ "nextPayment": "2019-08-24",
+ "maxPeriods": 1,
+ "dueDate ": "2019-09-24",
+ "notificationUrl ": "https://checkout.placetopay.com"
+ },
+ "subscribe": false,
+ "dispersion": [
+ {
+ "agreement": "1299",
+ "agreementType": "MERCHANT",
+ "amount": {
+ "currency": "USD",
+ "total": 200
+ }
+ }
+ ],
+ "modifiers": [
+ {
+ "type": "FEDERAL_GOVERNMENT",
+ "code": 17934,
+ "additional": {
+ "invoice": "123345"
+ }
+ }
+ ]
+}
+```
+```json {{ title: 'Checkout' }}
+{
+ "status": {
+ "status": "APPROVED",
+ "reason": "00",
+ "message": "Aprobada",
+ "date": "2021-11-30T09:36:00-05:00"
+ },
+ "payment": {
+ "status": {
+ "status": "APPROVED",
+ "reason": "00",
+ "message": "Aprobada",
+ "date": "2021-11-30T09:35:59-05:00"
+ },
+ "internalReference": 643,
+ "paymentMethod": "visa",
+ "paymentMethodName": "Visa",
+ "issuerName": "JPMORGAN CHASE BANK, N.A.",
+ "amount": {
+ "from": {
+ "currency": "USD",
+ "total": 500
+ },
+ "to": {
+ "currency": "USD",
+ "total": 500
+ },
+ "factor": 1
+ },
+ "authorization": "550044",
+ "reference": "1122334455",
+ "receipt": "499435368733",
+ "franchise": "PS_VS",
+ "refunded": false
+ }
+}
+```
+```json {{ title: 'Reauthorization'}}
+{
+ "status": {
+ "status": "APPROVED",
+ "reason": "00",
+ "message": "Aprobada",
+ "date": "2021-11-30T09:26:50-05:00"
+ },
+ "payment": {
+ "status": {
+ "status": "APPROVED",
+ "reason": "00",
+ "message": "Aprobada",
+ "date": "2021-11-30T09:26:49-05:00"
+ },
+ "internalReference": 642,
+ "paymentMethod": "visa",
+ "paymentMethodName": "Visa",
+ "issuerName": "JPMORGAN CHASE BANK, N.A.",
+ "amount": {
+ "from": {
+ "currency": "USD",
+ "total": 500
+ },
+ "to": {
+ "currency": "USD",
+ "total": 500
+ },
+ "factor": 1
+ },
+ "authorization": "883327",
+ "reference": "1122334455",
+ "receipt": "657093859996",
+ "franchise": "PS_VS",
+ "refunded": false
+ }
+}
+```
+```json {{ title: 'Reverse' }}
+{
+ "status": {
+ "status": "APPROVED",
+ "reason": "00",
+ "message": "Aprobada",
+ "date": "2021-11-30T09:37:46-05:00"
+ },
+ "payment": {
+ "status": {
+ "status": "APPROVED",
+ "reason": "00",
+ "message": "Aprobada",
+ "date": "2021-11-30T09:37:46-05:00"
+ },
+ "internalReference": 644,
+ "paymentMethod": "visa",
+ "paymentMethodName": "Visa",
+ "issuerName": "JPMORGAN CHASE BANK, N.A.",
+ "amount": {
+ "from": {
+ "currency": "USD",
+ "total": 500
+ },
+ "to": {
+ "currency": "USD",
+ "total": 1000
+ },
+ "factor": 1
+ },
+ "authorization": "550044",
+ "reference": "1122334455",
+ "receipt": "499435368733",
+ "franchise": "PS_VS",
+ "refunded": false
+ }
+}
+```
\ No newline at end of file
diff --git a/src/pages/checkout/api/reference/session.mdx b/src/pages/checkout/api/reference/session.mdx
index 8910c27..a723aed 100644
--- a/src/pages/checkout/api/reference/session.mdx
+++ b/src/pages/checkout/api/reference/session.mdx
@@ -25,31 +25,331 @@ Se identifica como sesión, a la experiencia visual con el que interactuan los u
- ```bash {{ title: 'cURL' }}
- curl -X "POST" https://checkout-test.placetopay.com/api/session \
- -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"
+```bash {{ title: 'Crear Sesión simple' }}
+curl -X "POST" https://checkout-test.placetopay.com/api/session \
+ -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": "Prueba",
+ "amount": {
+ "currency": "USD",
+ "total": 100
+ }
+ },
+ "expiration": "2021-12-30T00:00:00-05:00",
+ "returnUrl": "https://dnetix.co/p2p/client",
+ "ipAddress": "127.0.0.1",
+ "userAgent": "PlacetoPay Sandbox"
+ }'
+```
+```bash {{ title: 'Crear Sesión de preautorización' }}
+curl -X "POST" https://checkout-test.placetopay.com/api/session \
+ -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"
+ },
+ "type": "checkin",
+ "payment": {
+ "reference": "1122334455",
+ "description": "Prueba",
+ "amount": {
+ "currency": "USD",
+ "total": 100
+ }
+ },
+ "expiration": "2021-12-30T00:00:00-05:00",
+ "returnUrl": "https://dnetix.co/p2p/client",
+ "ipAddress": "127.0.0.1",
+ "userAgent": "PlacetoPay Sandbox"
+ }'
+```
+```bash {{ title: 'Crear sesión con pago mixto' }}
+curl -X "POST" https://checkout-test.placetopay.com/api/session \
+ -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": "Prueba",
+ "amount": {
+ "currency": "USD",
+ "total": 100
+ },
+ "allowPartial": true
+ },
+ "expiration": "2021-12-30T00:00:00-05:00",
+ "returnUrl": "https://dnetix.co/p2p/client",
+ "ipAddress": "127.0.0.1",
+ "userAgent": "PlacetoPay Sandbox"
+ }'
+```
+```bash {{ title: 'Crear sesión con impuestos' }}
+curl -X "POST" https://checkout-test.placetopay.com/api/session \
+ -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": "331122",
+ "description": "Reference",
+ "amount": {
+ "currency": "USD",
+ "total": 500,
+ "taxes": [
+ {
+ "kind": "stateTax",
+ "amount": 16.13
},
- "payment": {
- "reference": "1122334455",
- "description": "Prueba",
- "amount": {
- "currency": "USD",
- "total": 100
- }
+ {
+ "kind": "municipalTax",
+ "amount": 11.21
+ },
+ {
+ "kind": "reducedStateTax",
+ "amount": 10.21
+ }
+ ]
+ }
+ },
+ "expiration": "2021-12-30T00:00:00-05:00",
+ "returnUrl": "https://dnetix.co/p2p/client",
+ "ipAddress": "127.0.0.1",
+ "userAgent": "PlacetoPay Sandbox"
+ }'
+```
+```bash {{ title: 'Crear sesión con dispersión' }}
+curl -X "POST" https://checkout-test.placetopay.com/api/session \
+ -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": "331122",
+ "description": "Reference",
+ "amount": {
+ "currency": "USD",
+ "total": 500
+ },
+ "dispersion": [
+ {
+ "agreement": "1299",
+ "agreementType": "MERCHANT",
+ "amount": {
+ "currency": "USD",
+ "total": 200
+ }
+ },
+ {
+ "agreement": "",
+ "agreementType": "MERCHANT",
+ "amount": {
+ "currency": "USD",
+ "total": 300
+ }
+ }
+ ]
+ },
+ "expiration": "2021-12-30T00:00:00-05:00",
+ "returnUrl": "https://dnetix.co/p2p/client",
+ "ipAddress": "127.0.0.1",
+ "userAgent": "PlacetoPay Sandbox"
+ }'
+```
+```bash {{ title: 'Crear sesión suscripción' }}
+curl -X "POST" https://checkout-test.placetopay.com/api/session \
+ -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"
+ },
+ "subscription": {
+ "reference": "331122",
+ "description": "Una suscripción de prueba"
+ },
+ "expiration": "2021-12-31T00:00:00-05:00",
+ "returnUrl": "https://dnetix.co/p2p/client",
+ "ipAddress": "127.0.0.1",
+ "userAgent": "PlacetoPay Sandbox"
+ }'
+```
+```bash {{ title: 'Crear sesión con recurrencia' }}
+curl -X "POST" https://checkout-test.placetopay.com/api/session \
+ -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": "331122",
+ "description": "Pago con recurrencia",
+ "amount": {
+ "currency": "USD",
+ "total": 100
+ },
+ "recurring": {
+ "periodicity": "D",
+ "interval": "1",
+ "nextPayment": "2021-12-30",
+ "maxPeriods": "12"
+ }
+ },
+ "expiration": "2022-12-15T00:00:00-05:00",
+ "returnUrl": "https://dnetix.co/p2p/client",
+ "ipAddress": "127.0.0.1",
+ "userAgent": "PlacetoPay Sandbox"
+ }
+```
+```bash {{ title: 'Crear sesión con modificadores' }}
+curl -X "POST" https://checkout-test.placetopay.com/api/session \
+ -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": "331122",
+ "description": "Pago con modificadores",
+ "amount": {
+ "currency": "UYU",
+ "total": 2000
+ },
+ "modifiers": [
+ {
+ "type": "FEDERAL_GOVERNMENT",
+ "code": 17934,
+ "additional": {
+ "invoice": "112233"
+ }
+ }
+ ]
+ },
+ "expiration": "2022-12-15T00:00:00-05:00",
+ "returnUrl": "https://dnetix.co/p2p/client",
+ "ipAddress": "127.0.0.1",
+ "userAgent": "PlacetoPay Sandbox"
+ }'
+```
+```bash {{ title: 'Crear sesión con detalles' }}
+curl -X "POST" https://checkout-test.placetopay.com/api/session \
+ -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": "331122",
+ "description": "Reference",
+ "amount": {
+ "currency": "USD",
+ "total": 500,
+ "details": [
+ {
+ "kind": "tip",
+ "amount": 11
},
- "expiration": "2021-12-30T00:00:00-05:00",
- "returnUrl": "https://dnetix.co/p2p/client",
- "ipAddress": "127.0.0.1",
- "userAgent": "PlacetoPay Sandbox"
- }'
- ```
+ {
+ "kind": "subtotal",
+ "amount": 11
+ }
+ ]
+ }
+ },
+ "expiration": "2021-12-30T00:00:00-05:00",
+ "returnUrl": "https://dnetix.co/p2p/client",
+ "ipAddress": "127.0.0.1",
+ "userAgent": "PlacetoPay Sandbox"
+ }'
+```
+```bash {{ title: 'Crear sesión con pago y subscripción' }}
+curl -X "POST" https://checkout-test.placetopay.com/api/session \
+ -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"
+ },
+ "payer": {
+ "document": "1122334455",
+ "documentType": "CC",
+ "name": "John",
+ "surname": "Doe",
+ "company": "Evertec",
+ "email": "johndoe@app.com",
+ "mobile": "+5731111111111"
+ },
+ "payment": {
+ "reference": "12345",
+ "description": "Prueba de pago y subscripción",
+ "amount": {
+ "currency": "COP",
+ "total": 2000
+ },
+ "subscribe": true
+ },
+ "fields": [
+ {
+ "keyword": "_processUrl_",
+ "value": "https://checkout.redirection.test/session/1/a592098e22acc709ec7eb30fc0973060",
+ "displayOn": "none"
+ }
+ ],
+ "expiration": "2019-08-24T14:15:22Z",
+ "returnUrl": "https://commerce.test/return",
+ "cancelUrl": "https://commerce.test/cancel",
+ "ipAddress": "127.0.0.1",
+ "userAgent": "PlacetoPay Sandbox",
+ "skipResult": false,
+ "noBuyerFill": false
+ }'
+```
@@ -67,28 +367,28 @@ Se identifica como sesión, a la experiencia visual con el que interactuan los u
- ```json {{ title: '200' }}
- {
- "status": {
- "status": "OK",
- "reason": "PC",
- "message": "La petición se ha procesado correctamente",
- "date": "2021-11-30T15:08:27-05:00"
- },
- "requestId": 1,
- "processUrl": "https://checkout-co.placetopay.com/session/1/cc9b8690b1f7228c78b759ce27d7e80a",
- }
- ```
- ```json {{ title: '401' }}
- {
- "status": {
- "status": "FAILED",
- "reason": 401,
- "message": "Autenticación fallida 102",
- "date": "2021-11-30T15:12:25-05:00"
- },
- }
- ```
+```json {{ title: '200' }}
+{
+ "status": {
+ "status": "OK",
+ "reason": "PC",
+ "message": "La petición se ha procesado correctamente",
+ "date": "2021-11-30T15:08:27-05:00"
+ },
+ "requestId": 1,
+ "processUrl": "https://checkout-co.placetopay.com/session/1/cc9b8690b1f7228c78b759ce27d7e80a",
+}
+```
+```json {{ title: '401' }}
+{
+ "status": {
+ "status": "FAILED",
+ "reason": 401,
+ "message": "Autenticación fallida 102",
+ "date": "2021-11-30T15:12:25-05:00"
+ },
+}
+```
@@ -97,8 +397,6 @@ Se identifica como sesión, a la experiencia visual con el que interactuan los u
## Consultar una sesión {{ id: 'query-a-session', tag: 'POST', label: '/api/session/:requestId' }}
-
-
Este endpoint te permite obtener la información de la sesión, si en la sesión hay transacciones se muestra el detalle de las mismas.
@@ -124,18 +422,18 @@ Se identifica como sesión, a la experiencia visual con el que interactuan los u
- ```bash {{ title: 'cURL' }}
- curl -X "POST" https://checkout-test.placetopay.com/api/session/000000 \
- -H "Content-Type: application/json" \
- -d '{
- "auth": {
- "login": "c51ce410c124a10e0db5e4b97fc2af39",
- "tranKey": "VQOcRcVH2DfL6Y4B4SaK6yhoH/VOUveZ3xT16OQnvxE=",
- "nonce": "NjE0OWVkODgwYjNhNw==",
- "seed": "2021-09-21T09:34:48-05:00"
- }
- }'
- ```
+```bash {{ title: 'cURL' }}
+curl -X "POST" https://checkout-test.placetopay.com/api/session/000000 \
+ -H "Content-Type: application/json" \
+ -d '{
+ "auth": {
+ "login": "c51ce410c124a10e0db5e4b97fc2af39",
+ "tranKey": "VQOcRcVH2DfL6Y4B4SaK6yhoH/VOUveZ3xT16OQnvxE=",
+ "nonce": "NjE0OWVkODgwYjNhNw==",
+ "seed": "2021-09-21T09:34:48-05:00"
+ }
+ }'
+```
@@ -153,271 +451,778 @@ Se identifica como sesión, a la experiencia visual con el que interactuan los u
- ```json {{ title: '200' }}
+```json {{ title: '200: APROBADO' }}
+{
+ "requestId": 1,
+ "status": {
+ "status": "APPROVED",
+ "reason": "00",
+ "message": "La petición ha sido aprobada exitosamente",
+ "date": "2022-07-27T14:51:27-05:00"
+ },
+ "request": {
+ "locale": "es_CO",
+ "payer": {
+ "document": "1122334455",
+ "documentType": "CC",
+ "name": "John",
+ "surname": "Doe",
+ "company": "Evertec",
+ "email": "johndoe@app.com",
+ "mobile": "+5731111111111",
+ "address": {
+ "street": "Calle falsa 123",
+ "city": "Medellín",
+ "state": "Poblado",
+ "postalCode": "55555",
+ "country": "Colombia",
+ "phone": "+573111111111"
+ }
+ },
+ "buyer": {
+ "document": "1122334455",
+ "documentType": "CC",
+ "name": "John",
+ "surname": "Doe",
+ "company": "Evertec",
+ "email": "johndoe@app.com",
+ "mobile": "+5731111111111",
+ "address": {
+ "street": "Calle falsa 123",
+ "city": "Medellín",
+ "state": "Poblado",
+ "postalCode": "55555",
+ "country": "Colombia",
+ "phone": "+573111111111"
+ }
+ },
+ "payment": {
+ "reference": "12345",
+ "description": "Prueba de pago",
+ "amount": {
+ "currency": "COP",
+ "total": 2000,
+ "taxes": [
+ {
+ "kind": "valueAddedTax",
+ "amount": 1000,
+ "base": 0
+ }
+ ],
+ "details": [
+ {
+ "kind": "discount",
+ "amount": 1000
+ }
+ ]
+ },
+ "allowPartial": false,
+ "shipping": {
+ "document": "1122334455",
+ "documentType": "CC",
+ "name": "John",
+ "surname": "Doe",
+ "company": "Evertec",
+ "email": "johndoe@app.com",
+ "mobile": "+5731111111111",
+ "address": {
+ "street": "Calle falsa 123",
+ "city": "Medellín",
+ "state": "Poblado",
+ "postalCode": "55555",
+ "country": "Colombia",
+ "phone": "+573111111111"
+ }
+ },
+ "items": [
+ {
+ "sku": "12345",
+ "name": "product_1",
+ "category": "physical",
+ "qty": "1",
+ "price": 1000,
+ "tax": 0
+ }
+ ],
+ "fields": [
+ {
+ "keyword": "_test_field_value_",
+ "value": "_test_field_",
+ "displayOn": "approved"
+ }
+ ],
+ "recurring": {
+ "periodicity": "D",
+ "interval": "1",
+ "nextPayment": "2019-08-24",
+ "maxPeriods": 1,
+ "dueDate ": "2019-09-24",
+ "notificationUrl ": "https://checkout.placetopay.com"
+ },
+ "subscribe": false,
+ "dispersion": [
+ {
+ "agreement": "1299",
+ "agreementType": "MERCHANT",
+ "amount": {
+ "currency": "USD",
+ "total": 200
+ }
+ }
+ ],
+ "modifiers": [
+ {
+ "type": "FEDERAL_GOVERNMENT",
+ "code": 17934,
+ "additional": {
+ "invoice": "123345"
+ }
+ }
+ ]
+ },
+ "subscription": {
+ "reference": "12345",
+ "description": "Ejemplo de descripción",
+ "fields": {
+ "keyword": "1111",
+ "value": "lastDigits",
+ "displayOn": "none"
+ }
+ },
+ "fields": [
+ {
+ "keyword": "_processUrl_",
+ "value": "https://checkout.redirection.test/session/1/a592098e22acc709ec7eb30fc0973060",
+ "displayOn": "none"
+ }
+ ],
+ "paymentMethod": "visa",
+ "expiration": "2019-08-24T14:15:22Z",
+ "returnUrl": "https://commerce.test/return",
+ "cancelUrl": "https://commerce.test/cancel",
+ "ipAddress": "127.0.0.1",
+ "userAgent": "PlacetoPay Sandbox",
+ "skipResult": false,
+ "noBuyerFill": false,
+ "type": "checkin"
+ },
+ "payment": [
{
- "requestId": 1,
"status": {
"status": "APPROVED",
"reason": "00",
"message": "La petición ha sido aprobada exitosamente",
"date": "2022-07-27T14:51:27-05:00"
},
- "request": {
- "locale": "es_CO",
- "payer": {
- "document": "1122334455",
- "documentType": "CC",
- "name": "John",
- "surname": "Doe",
- "company": "Evertec",
- "email": "johndoe@app.com",
- "mobile": "+5731111111111",
- "address": {
- "street": "Calle falsa 123",
- "city": "Medellín",
- "state": "Poblado",
- "postalCode": "55555",
- "country": "Colombia",
- "phone": "+573111111111"
- }
+ "internalReference": 12345,
+ "reference": "12345",
+ "paymentMethod": "visa",
+ "paymentMethodName": "Visa",
+ "issuerName": "JPMORGAN CHASE BANK, N.A.",
+ "amount": {
+ "from": {
+ "currency ": "COP",
+ "total ": 10000
},
- "buyer": {
- "document": "1122334455",
- "documentType": "CC",
- "name": "John",
- "surname": "Doe",
- "company": "Evertec",
- "email": "johndoe@app.com",
- "mobile": "+5731111111111",
- "address": {
- "street": "Calle falsa 123",
- "city": "Medellín",
- "state": "Poblado",
- "postalCode": "55555",
- "country": "Colombia",
- "phone": "+573111111111"
- }
+ "to": {
+ "currency ": "COP",
+ "total ": 10000
},
- "payment": {
- "reference": "12345",
- "description": "Prueba de pago",
+ "factor": 1
+ },
+ "receipt": "052617800175",
+ "franchise": "PS_VS",
+ "refunded": false,
+ "authorization": "965960",
+ "processorFields": [
+ {
+ "keyword": "1111",
+ "value": "lastDigits",
+ "displayOn": "none"
+ }
+ ],
+ "dispersion": null,
+ "agreement": null,
+ "agreementType": null,
+ "discount": {
+ "base": 3000,
+ "code": "17934",
+ "type": "FRANCHISE",
+ "amount": 1000
+ },
+ "subscription": null
+ }
+ ],
+ "subscription": {
+ "status": {
+ "status": "OK",
+ "reason": "00",
+ "message": "La petición ha sido aprobada exitosamente",
+ "date": "2022-07-27T14:51:27-05:00"
+ },
+ "type": "token",
+ "instrument": [
+ {
+ "keyword": "token",
+ "value": "a3bfc8e2afb9ac5583922eccd6d2061c1b0592b099f04e352a894f37ae51cf1a",
+ "displayOn": "none"
+ },
+ {
+ "keyword": "subtoken",
+ "value": "8740257204881111",
+ "displayOn": "none"
+ },
+ {
+ "keyword": "franchise",
+ "value": "visa",
+ "displayOn": "none"
+ },
+ {
+ "keyword": "franchiseName",
+ "value": "Visa",
+ "displayOn": "none"
+ },
+ {
+ "keyword": "issuerName",
+ "value": "JPMORGAN CHASE BANK, N.A.",
+ "displayOn": "none"
+ },
+ {
+ "keyword": "lastDigits",
+ "value": "1111",
+ "displayOn": "none"
+ },
+ {
+ "keyword": "validUntil",
+ "value": "2029-12-31",
+ "displayOn": "none"
+ },
+ {
+ "keyword": "installments",
+ "value": null,
+ "displayOn": "none"
+ }
+ ]
+ }
+}
+```
+```json {{ title: '200: PENDIENTE'}}
+{
+ "requestId": 1,
+ "status": {
+ "status": "PENDING",
+ "reason": "PT",
+ "message": "La petición se encuentra pendiente",
+ "date": "2021-11-30T15:45:57-05:00"
+ },
+ "request": {
+ "locale": "es_CO",
+ "payer": {
+ "document": "1033332222",
+ "documentType": "CC",
+ "name": "Name",
+ "surname": "lastName",
+ "email": "dnetix1@app.com",
+ "mobile": "3111111111",
+ "address": {
+ "postalCode": "12345"
+ }
+ },
+ "payment": {
+ "reference": "1122334455",
+ "description": "Prueba",
+ "amount": {
+ "currency": "USD",
+ "total": 1000
+ },
+ "allowPartial": false,
+ "subscribe": false
+ },
+ "fields": [
+ {
+ "keyword": "_processUrl_",
+ "value": "https://test.placetopay.com/redirection/session/1/e0dfb6c7d6ab964b2377c825aef56a63",
+ "displayOn": "none"
+ }
+ ],
+ "returnUrl": "https://dnetix.co/p2p/client",
+ "ipAddress": "127.0.0.1",
+ "userAgent": "PlacetoPay Sandbox",
+ "expiration": "2021-12-30T00:00:00-05:00"
+ },
+ "payment": null,
+ "subscription": null
+}
+```
+```json {{ title: '200: RECHAZADO'}}
+{
+ "requestId": 1,
+ "status": {
+ "status": "REJECTED",
+ "reason": "XN",
+ "message": "Se ha rechazado la petición",
+ "date": "2021-11-30T16:44:24-05:00"
+ },
+ "request": {
+ "locale": "es_CO",
+ "payer": {
+ "document": "1033332222",
+ "documentType": "CC",
+ "name": "Name",
+ "surname": "LastName",
+ "email": "dnetix@app.com",
+ "mobile": "31111111111",
+ "address": {
+ "postalCode": "12345"
+ }
+ },
+ "payment": {
+ "reference": "331122",
+ "description": "Reference",
+ "amount": {
+ "currency": "USD",
+ "total": 500
+ },
+ "allowPartial": false,
+ "subscribe": false,
+ "dispersion": [
+ {
+ "reference": "331122",
+ "description": "Reference",
"amount": {
- "currency": "COP",
- "total": 2000,
- "taxes": [
- {
- "kind": "valueAddedTax",
- "amount": 1000,
- "base": 0
- }
- ],
- "details": [
- {
- "kind": "discount",
- "amount": 1000
- }
- ]
+ "currency": "USD",
+ "total": 200
},
"allowPartial": false,
- "shipping": {
- "document": "1122334455",
- "documentType": "CC",
- "name": "John",
- "surname": "Doe",
- "company": "Evertec",
- "email": "johndoe@app.com",
- "mobile": "+5731111111111",
- "address": {
- "street": "Calle falsa 123",
- "city": "Medellín",
- "state": "Poblado",
- "postalCode": "55555",
- "country": "Colombia",
- "phone": "+573111111111"
- }
- },
- "items": [
- {
- "sku": "12345",
- "name": "product_1",
- "category": "physical",
- "qty": "1",
- "price": 1000,
- "tax": 0
- }
- ],
- "fields": [
- {
- "keyword": "_test_field_value_",
- "value": "_test_field_",
- "displayOn": "approved"
- }
- ],
- "recurring": {
- "periodicity": "D",
- "interval": "1",
- "nextPayment": "2019-08-24",
- "maxPeriods": 1,
- "dueDate ": "2019-09-24",
- "notificationUrl ": "https://checkout.placetopay.com"
+ "subscribe": false,
+ "agreement": "26",
+ "agreementType": "AIRLINE"
+ },
+ {
+ "reference": "331122",
+ "description": "Reference",
+ "amount": {
+ "currency": "USD",
+ "total": 300
},
+ "allowPartial": false,
"subscribe": false,
- "dispersion": [
- {
- "agreement": "1299",
- "agreementType": "MERCHANT",
- "amount": {
- "currency": "USD",
- "total": 200
- }
- }
- ],
- "modifiers": [
- {
- "type": "FEDERAL_GOVERNMENT",
- "code": 17934,
- "additional": {
- "invoice": "123345"
- }
- }
- ]
+ "agreementType": "MERCHANT"
+ }
+ ]
+ },
+ "fields": [
+ {
+ "keyword": "_processUrl_",
+ "value": "https://test.placetopay.com/redirection/session/1/1dfbaf16c76c6ee83a63a956d704a9d1",
+ "displayOn": "none"
+ }
+ ],
+ "returnUrl": "https://redirection.test/home",
+ "ipAddress": "127.0.0.1",
+ "userAgent": "PlacetoPay Sandbox",
+ "expiration": "2021-12-30T00:00:00-05:00"
+ },
+ "payment": [
+ {
+ "status": {
+ "status": "REJECTED",
+ "reason": "65",
+ "message": "65",
+ "date": "2021-11-30T16:22:19-05:00"
+ },
+ "internalReference": 1,
+ "paymentMethod": "visa",
+ "paymentMethodName": "Visa",
+ "issuerName": "CAIXA D'ESTALVIS UNIO DE CAIXES DE MANLLEU, SABADE",
+ "amount": {
+ "from": {
+ "currency": "USD",
+ "total": 500
},
- "subscription": {
- "reference": "12345",
- "description": "Ejemplo de descripción",
- "fields": {
- "keyword": "1111",
- "value": "lastDigits",
- "displayOn": "none"
- }
+ "to": {
+ "currency": "USD",
+ "total": 500
},
- "fields": [
- {
- "keyword": "_processUrl_",
- "value": "https://checkout.redirection.test/session/1/a592098e22acc709ec7eb30fc0973060",
- "displayOn": "none"
- }
- ],
- "paymentMethod": "visa",
- "expiration": "2019-08-24T14:15:22Z",
- "returnUrl": "https://commerce.test/return",
- "cancelUrl": "https://commerce.test/cancel",
- "ipAddress": "127.0.0.1",
- "userAgent": "PlacetoPay Sandbox",
- "skipResult": false,
- "noBuyerFill": false,
- "type": "checkin"
+ "factor": 1
},
- "payment": [
+ "authorization": "000000",
+ "reference": "331122",
+ "franchise": "TS_VS",
+ "refunded": false,
+ "processorFields": [
+ {
+ "keyword": "totalAmount",
+ "value": 500,
+ "displayOn": "none"
+ },
+ {
+ "keyword": "lastDigits",
+ "value": "6853",
+ "displayOn": "none"
+ }
+ ],
+ "dispersion": [
{
"status": {
- "status": "APPROVED",
- "reason": "00",
- "message": "La petición ha sido aprobada exitosamente",
- "date": "2022-07-27T14:51:27-05:00"
+ "status": "REJECTED",
+ "reason": "65",
+ "message": "65",
+ "date": "2021-11-30T16:34:17-05:00"
},
- "internalReference": 12345,
- "reference": "12345",
- "paymentMethod": "visa",
- "paymentMethodName": "Visa",
- "issuerName": "JPMORGAN CHASE BANK, N.A.",
+ "internalReference": 2,
"amount": {
"from": {
- "currency ": "COP",
- "total ": 10000
+ "currency": "USD",
+ "total": 200
},
"to": {
- "currency ": "COP",
- "total ": 10000
+ "currency": "USD",
+ "total": 200
},
"factor": 1
},
- "receipt": "052617800175",
- "franchise": "PS_VS",
+ "authorization": "000000",
+ "franchise": "TS_VS",
"refunded": false,
- "authorization": "965960",
- "processorFields": [
- {
- "keyword": "1111",
- "value": "lastDigits",
- "displayOn": "none"
- }
- ],
- "dispersion": null,
- "agreement": null,
- "agreementType": null,
- "discount": {
- "base": 3000,
- "code": "17934",
- "type": "FRANCHISE",
- "amount": 1000
- },
- "subscription": null
- }
- ],
- "subscription": {
- "status": {
- "status": "OK",
- "reason": "00",
- "message": "La petición ha sido aprobada exitosamente",
- "date": "2022-07-27T14:51:27-05:00"
+ "agreement": 26,
+ "agreementType": "AIRLINE"
},
- "type": "token",
- "instrument": [
- {
- "keyword": "token",
- "value": "a3bfc8e2afb9ac5583922eccd6d2061c1b0592b099f04e352a894f37ae51cf1a",
- "displayOn": "none"
+ {
+ "status": {
+ "status": "REJECTED",
+ "reason": "?C",
+ "message": "Pago abortado por el usuario",
+ "date": "2021-11-30T16:34:17-05:00"
},
- {
- "keyword": "subtoken",
- "value": "8740257204881111",
- "displayOn": "none"
+ "internalReference": 3,
+ "amount": {
+ "from": {
+ "currency": "USD",
+ "total": 300
+ },
+ "to": {
+ "currency": "USD",
+ "total": 300
+ },
+ "factor": 1
},
- {
- "keyword": "franchise",
- "value": "visa",
- "displayOn": "none"
+ "authorization": "000000",
+ "receipt": "000000",
+ "franchise": "ID_VS",
+ "refunded": false,
+ "agreementType": "MERCHANT"
+ }
+ ]
+ }
+ ],
+ "subscription": null
+}
+```
+```json {{ title: '200: EXPIRADO PARCIALMENTE'}}
+{
+ "requestId": 1,
+ "status": {
+ "status": "PARTIAL_EXPIRED",
+ "reason": "PX",
+ "message": "La petición esta expirada o cancelada y se han realizado pagos",
+ "date": "2023-03-09T17:10:34-05:00"
+ },
+ "request": {
+ "locale": "es_CO",
+ "payer": {
+ "document": "111111111",
+ "documentType": "CC",
+ "name": "Diego",
+ "surname": "Calle",
+ "email": "dnetix@yopmail.com",
+ "mobile": "+573111111111"
+ },
+ "payment": {
+ "reference": "331122",
+ "description": "Reference",
+ "amount": {
+ "currency": "USD",
+ "total": 500
+ },
+ "allowPartial": false,
+ "subscribe": false,
+ "dispersion": [
+ {
+ "reference": "331122",
+ "description": "Reference",
+ "amount": {
+ "currency": "USD",
+ "total": 200
},
- {
- "keyword": "franchiseName",
- "value": "Visa",
- "displayOn": "none"
+ "allowPartial": false,
+ "subscribe": false,
+ "agreement": "111",
+ "agreementType": "MERCHANT"
+ },
+ {
+ "reference": "331122",
+ "description": "Reference",
+ "amount": {
+ "currency": "USD",
+ "total": 300
},
- {
- "keyword": "issuerName",
- "value": "JPMORGAN CHASE BANK, N.A.",
- "displayOn": "none"
+ "allowPartial": false,
+ "subscribe": false,
+ "agreementType": "MERCHANT"
+ }
+ ]
+ },
+ "fields": [
+ {
+ "keyword": "_processUrl_",
+ "value": "https://checkout.redirection.test/session/750/20e2eb0d4681a916549e95ed49a11080",
+ "displayOn": "none"
+ }
+ ],
+ "returnUrl": "https://redirection.test/home",
+ "ipAddress": "127.0.0.1",
+ "userAgent": "PlacetoPay Sandbox",
+ "expiration": "2023-03-09T23:09:14.946Z"
+ },
+ "payment": [
+ {
+ "amount": {
+ "to": {
+ "total": 500,
+ "currency": "USD"
+ },
+ "from": {
+ "total": 500,
+ "currency": "USD"
+ },
+ "factor": 1
+ },
+ "status": {
+ "date": "2023-03-09T17:10:14-05:00",
+ "reason": "61",
+ "status": "APPROVED_PARTIAL",
+ "message": "Negada, Monto excede el máximo definido por la Entidad Financiera en el archivo de Tarjetahabientes"
+ },
+ "receipt": "110000857921",
+ "refunded": false,
+ "franchise": "EB_VS",
+ "reference": "331122",
+ "dispersion": [
+ {
+ "amount": {
+ "to": {
+ "total": 200,
+ "currency": "USD"
+ },
+ "from": {
+ "total": 200,
+ "currency": "USD"
+ },
+ "factor": 1
},
- {
- "keyword": "lastDigits",
- "value": "1111",
- "displayOn": "none"
+ "status": {
+ "date": "2023-03-09T17:10:14-05:00",
+ "reason": "00",
+ "status": "APPROVED",
+ "message": "Aprobada"
},
- {
- "keyword": "validUntil",
- "value": "2029-12-31",
- "displayOn": "none"
+ "receipt": "110000857921",
+ "refunded": false,
+ "franchise": "EB_VS",
+ "agreementType": "MERCHANT",
+ "authorization": "614761",
+ "internalReference": 421692
+ },
+ {
+ "amount": {
+ "to": {
+ "total": 300,
+ "currency": "USD"
+ },
+ "from": {
+ "total": 300,
+ "currency": "USD"
+ },
+ "factor": 1
},
- {
- "keyword": "installments",
- "value": null,
- "displayOn": "none"
- }
- ]
- }
+ "status": {
+ "date": "2023-03-09T17:10:14-05:00",
+ "reason": "61",
+ "status": "REJECTED",
+ "message": "Negada, Monto excede el máximo definido por la Entidad Financiera en el archivo de Tarjetahabientes"
+ },
+ "receipt": "421693",
+ "refunded": false,
+ "franchise": "EB_VS",
+ "agreementType": "MERCHANT",
+ "authorization": "000000",
+ "internalReference": 421693
+ }
+ ],
+ "issuerName": "BANCO DE GUAYAQUIL, S.A.",
+ "authorization": "614761",
+ "paymentMethod": "visa",
+ "processorFields": [
+ {
+ "value": "4549106521651",
+ "keyword": "merchantCode",
+ "displayOn": "none"
+ },
+ {
+ "value": "19371021",
+ "keyword": "terminalNumber",
+ "displayOn": "none"
+ },
+ {
+ "value": "411076",
+ "keyword": "bin",
+ "displayOn": "none"
+ },
+ {
+ "value": 200,
+ "keyword": "totalAmount",
+ "displayOn": "none"
+ },
+ {
+ "value": "0057",
+ "keyword": "lastDigits",
+ "displayOn": "none"
+ },
+ {
+ "value": "eeacbe4f36c8f8117fc4d7ab47fa366f",
+ "keyword": "id",
+ "displayOn": "none"
+ },
+ {
+ "value": "61",
+ "keyword": "b24",
+ "displayOn": "none"
+ }
+ ],
+ "internalReference": 421691,
+ "paymentMethodName": "Visa"
}
- ```
- ```json {{ title: '401' }}
+ ],
+ "subscription": null
+}
+```
+```json {{ title: '200: APROBADO PARCIALMENTE'}}
+{
+ "requestId": 1,
+ "status": {
+ "status": "APPROVED_PARTIAL",
+ "reason": "P0",
+ "message": "La petición está parcialmente aprobada",
+ "date": "2023-03-09T17:29:13-05:00"
+ },
+ "request": {
+ "locale": "es_CO",
+ "payer": {
+ "document": "111111111",
+ "documentType": "CC",
+ "name": "Antonino",
+ "surname": "Pan y queso",
+ "email": "root13@app.com",
+ "mobile": "+573111111111"
+ },
+ "payment": {
+ "reference": "GAD_1675183488",
+ "description": "Pago GAD Municipal de Cuenca",
+ "amount": {
+ "currency": "COP",
+ "total": 10000
+ },
+ "allowPartial": true,
+ "subscribe": false
+ },
+ "fields": [
+ {
+ "keyword": "_processUrl_",
+ "value": "https://checkout.redirection.test/session/751/cfe5a789a27feca7fe211bd400db354d",
+ "displayOn": "none"
+ }
+ ],
+ "returnUrl": "https://mysite.com/response/32120",
+ "ipAddress": "127.0.0.1",
+ "userAgent": "PlacetoPay Sandbox",
+ "expiration": "2023-03-09T23:28:43.775Z"
+ },
+ "payment": [
{
+ "amount": {
+ "to": {
+ "total": 1.05,
+ "currency": "USD"
+ },
+ "from": {
+ "total": 5000,
+ "currency": "COP"
+ },
+ "factor": 0.00021
+ },
"status": {
- "status": "FAILED",
- "reason": 401,
- "message": "Autenticación fallida 102",
- "date": "2021-11-30T15:12:25-05:00"
+ "date": "2023-03-09T17:29:03-05:00",
+ "reason": "00",
+ "status": "APPROVED",
+ "message": "Aprobada"
},
+ "receipt": "110000288071",
+ "refunded": false,
+ "franchise": "EB_VS",
+ "reference": "GAD_1675183488",
+ "issuerName": "JPMORGAN CHASE BANK, N.A.",
+ "authorization": "614761",
+ "paymentMethod": "visa",
+ "processorFields": [
+ {
+ "value": "4549106521651",
+ "keyword": "merchantCode",
+ "displayOn": "none"
+ },
+ {
+ "value": "19371021",
+ "keyword": "terminalNumber",
+ "displayOn": "none"
+ },
+ {
+ "value": "411111",
+ "keyword": "bin",
+ "displayOn": "none"
+ },
+ {
+ "value": "1111",
+ "keyword": "lastDigits",
+ "displayOn": "none"
+ },
+ {
+ "value": "74a6ef63ea0d1fcc78f4c471b0ae7f3d",
+ "keyword": "id",
+ "displayOn": "none"
+ },
+ {
+ "value": "00",
+ "keyword": "b24",
+ "displayOn": "none"
+ }
+ ],
+ "internalReference": 421694,
+ "paymentMethodName": "Visa"
}
- ```
+ ],
+ "subscription": null
+}
+```
+```json {{ title: '401' }}
+{
+ "status": {
+ "status": "FAILED",
+ "reason": 401,
+ "message": "Autenticación fallida 102",
+ "date": "2021-11-30T15:12:25-05:00"
+ },
+}
+```
\ No newline at end of file
diff --git a/src/pages/checkout/api/reference/token.mdx b/src/pages/checkout/api/reference/token.mdx
index be4e8bc..02cd05c 100644
--- a/src/pages/checkout/api/reference/token.mdx
+++ b/src/pages/checkout/api/reference/token.mdx
@@ -2,7 +2,7 @@ export const sectionMode = 'nav';
export const description =
'En esta página, nos sumergiremos en los diferentes puntos finales relacionado con tokens que puede usar para administrar cobros.'
-export const apiRefs = ['/api/collect','/api/instrument/invalidate']
+export const apiRefs = ['/api/collect', '/api/instrument/invalidate']
# Token
@@ -24,36 +24,100 @@ Se identifica como token, a la llave generada por un proceso de suscripción per
- ```bash {{ title: 'cURL' }}
- curl -X "POST" https://checkout-test.placetopay.com/api/collect \
- -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": "Prueba",
- "amount": {
- "currency": "USD",
- "total": 100
- }
- },
- "instrument": {
- "token": {
- "token": "e07ca9986cf0ecac8a557fa11c07bf37ea35e9e3e3a4180c49"
- }
- },
- "expiration": "2021-12-30T00:00:00-05:00",
- "returnUrl": "https://dnetix.co/p2p/client",
- "ipAddress": "127.0.0.1",
- "userAgent": "PlacetoPay Sandbox"
- }'
- ```
+```bash {{ title: 'COBRO CON TOKEN SIMPLE' }}
+curl -X "POST" https://checkout-test.placetopay.com/api/collect \
+ -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": "Prueba",
+ "amount": {
+ "currency": "USD",
+ "total": 100
+ }
+ },
+ "instrument": {
+ "token": {
+ "token": "e07ca9986cf0ecac8a557fa11c07bf37ea35e9e3e3a4180c49"
+ }
+ },
+ "expiration": "2021-12-30T00:00:00-05:00",
+ "returnUrl": "https://dnetix.co/p2p/client",
+ "ipAddress": "127.0.0.1",
+ "userAgent": "PlacetoPay Sandbox"
+ }'
+```
+```bash {{ title: 'COBRO CON TOKEN A UNA PREAUTORUZACIÓN' }}
+curl -X "POST" https://checkout-test.placetopay.com/api/collect \
+ -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": "Prueba",
+ "amount": {
+ "currency": "USD",
+ "total": 100
+ }
+ },
+ "type": "checkin",
+ "instrument": {
+ "token": {
+ "token": "e07ca9986cf0ecac8a557fa11c07bf37ea35e9e3e3a4180c49"
+ }
+ },
+ "expiration": "2021-12-30T00:00:00-05:00",
+ "returnUrl": "https://dnetix.co/p2p/client",
+ "ipAddress": "127.0.0.1",
+ "userAgent": "PlacetoPay Sandbox"
+ }'
+```
+
+```bash {{ title: 'COBRO CON BOLSILLO DE TARJETA' }}
+curl -X "POST" https://checkout-test.placetopay.com/api/collect \
+ -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": "Prueba",
+ "amount": {
+ "currency": "USD",
+ "total": 100
+ }
+ },
+ "type": "checkin",
+ "instrument": {
+ "pocket": 10,
+ "token": {
+ "token": "e07ca9986cf0ecac8a557fa11c07bf37ea35e9e3e3a4180c49"
+ }
+ },
+ "expiration": "2021-12-30T00:00:00-05:00",
+ "returnUrl": "https://dnetix.co/p2p/client",
+ "ipAddress": "127.0.0.1",
+ "userAgent": "PlacetoPay Sandbox"
+ }'
+```
@@ -67,203 +131,203 @@ Se identifica como token, a la llave generada por un proceso de suscripción per
api={props.refs}
/>
-
-
-
- ```json {{ title: 'Aprobado'}}
- {
- "requestId": 1,
- "status": {
- "status": "APPROVED",
- "reason": "00",
- "message": "La petición ha sido aprobada exitosamente",
- "date": "2021-11-30T15:49:47-05:00"
- },
- "request": {
- "locale": "es_CO",
- "payer": {
- "document": "1033332222",
- "documentType": "CC",
- "name": "Name",
- "surname": "LastName",
- "email": "dnetix1@app.com",
- "mobile": "3111111111",
- "address": {
- "postalCode": "12345"
- }
- },
- "payment": {
- "reference": "1122334455",
- "description": "Prueba",
- "amount": {
- "currency": "USD",
- "total": 100
- },
- "allowPartial": false,
- "subscribe": false
- },
- "returnUrl": "https://redirection.test/home",
- "ipAddress": "127.0.0.1",
- "userAgent": "PlacetoPay Sandbox",
- "expiration": "2021-12-30T00:00:00-05:00"
- },
- "payment": [
- {
- "status": {
- "status": "APPROVED",
- "reason": "00",
- "message": "Aprobada",
- "date": "2021-11-30T15:49:36-05:00"
- },
- "internalReference": 1,
- "paymentMethod": "visa",
- "paymentMethodName": "Visa",
- "issuerName": "JPMORGAN CHASE BANK, N.A.",
- "amount": {
- "from": {
- "currency": "USD",
- "total": 100
- },
- "to": {
- "currency": "USD",
- "total": 100
- },
- "factor": 1
- },
- "authorization": "000000",
- "reference": "1122334455",
- "receipt": "241516",
- "franchise": "DF_VS",
- "refunded": false,
- "processorFields": [
- {
- "keyword": "lastDigits",
- "value": "1111",
- "displayOn": "none"
- }
- ]
- }
- ],
- "subscription": null
+
+
+
+```json {{ title: 'Aprobado'}}
+{
+ "requestId": 1,
+ "status": {
+ "status": "APPROVED",
+ "reason": "00",
+ "message": "La petición ha sido aprobada exitosamente",
+ "date": "2021-11-30T15:49:47-05:00"
+ },
+ "request": {
+ "locale": "es_CO",
+ "payer": {
+ "document": "1033332222",
+ "documentType": "CC",
+ "name": "Name",
+ "surname": "LastName",
+ "email": "dnetix1@app.com",
+ "mobile": "3111111111",
+ "address": {
+ "postalCode": "12345"
}
- ```
- ```json {{ title: 'Pendiente' }}
- {
- "requestId": 1,
- "status": {
- "status": "PENDING",
- "reason": "PT",
- "message": "La petición se encuentra pendiente",
- "date": "2021-11-30T15:45:57-05:00"
+ },
+ "payment": {
+ "reference": "1122334455",
+ "description": "Prueba",
+ "amount": {
+ "currency": "USD",
+ "total": 100
+ },
+ "allowPartial": false,
+ "subscribe": false
+ },
+ "returnUrl": "https://redirection.test/home",
+ "ipAddress": "127.0.0.1",
+ "userAgent": "PlacetoPay Sandbox",
+ "expiration": "2021-12-30T00:00:00-05:00"
+ },
+ "payment": [
+ {
+ "status": {
+ "status": "APPROVED",
+ "reason": "00",
+ "message": "Aprobada",
+ "date": "2021-11-30T15:49:36-05:00"
+ },
+ "internalReference": 1,
+ "paymentMethod": "visa",
+ "paymentMethodName": "Visa",
+ "issuerName": "JPMORGAN CHASE BANK, N.A.",
+ "amount": {
+ "from": {
+ "currency": "USD",
+ "total": 100
},
- "request": {
- "locale": "es_CO",
- "payer": {
- "document": "1033332222",
- "documentType": "CC",
- "name": "Name",
- "surname": "lastName",
- "email": "dnetix1@app.com",
- "mobile": "3111111111",
- "address": {
- "postalCode": "12345"
- }
- },
- "payment": {
- "reference": "1122334455",
- "description": "Prueba",
- "amount": {
- "currency": "USD",
- "total": 100
- },
- "allowPartial": false,
- "subscribe": false
- },
- "returnUrl": "https://dnetix.co/p2p/client",
- "ipAddress": "127.0.0.1",
- "userAgent": "PlacetoPay Sandbox",
- "expiration": "2021-12-30T00:00:00-05:00"
+ "to": {
+ "currency": "USD",
+ "total": 100
},
- "payment": null,
- "subscription": null
+ "factor": 1
+ },
+ "authorization": "000000",
+ "reference": "1122334455",
+ "receipt": "241516",
+ "franchise": "DF_VS",
+ "refunded": false,
+ "processorFields": [
+ {
+ "keyword": "lastDigits",
+ "value": "1111",
+ "displayOn": "none"
+ }
+ ]
+ }
+ ],
+ "subscription": null
+}
+```
+```json {{ title: 'Pendiente' }}
+{
+ "requestId": 1,
+ "status": {
+ "status": "PENDING",
+ "reason": "PT",
+ "message": "La petición se encuentra pendiente",
+ "date": "2021-11-30T15:45:57-05:00"
+ },
+ "request": {
+ "locale": "es_CO",
+ "payer": {
+ "document": "1033332222",
+ "documentType": "CC",
+ "name": "Name",
+ "surname": "lastName",
+ "email": "dnetix1@app.com",
+ "mobile": "3111111111",
+ "address": {
+ "postalCode": "12345"
+ }
+ },
+ "payment": {
+ "reference": "1122334455",
+ "description": "Prueba",
+ "amount": {
+ "currency": "USD",
+ "total": 100
+ },
+ "allowPartial": false,
+ "subscribe": false
+ },
+ "returnUrl": "https://dnetix.co/p2p/client",
+ "ipAddress": "127.0.0.1",
+ "userAgent": "PlacetoPay Sandbox",
+ "expiration": "2021-12-30T00:00:00-05:00"
+ },
+ "payment": null,
+ "subscription": null
+}
+```
+```json {{ title: 'Rechazado' }}
+{
+ "requestId": 1,
+ "status": {
+ "status": "REJECTED",
+ "reason": "XN",
+ "message": "Se ha rechazado la petición",
+ "date": "2021-11-30T16:44:24-05:00"
+ },
+ "request": {
+ "locale": "es_CO",
+ "payer": {
+ "document": "1033332222",
+ "documentType": "CC",
+ "name": "Name",
+ "surname": "LastName",
+ "email": "dnetix@app.com",
+ "mobile": "31111111111",
+ "address": {
+ "postalCode": "12345"
}
- ```
- ```json {{ title: 'Rechazado' }}
- {
- "requestId": 1,
- "status": {
- "status": "REJECTED",
- "reason": "XN",
- "message": "Se ha rechazado la petición",
- "date": "2021-11-30T16:44:24-05:00"
+ },
+ "payment": {
+ "reference": "331122",
+ "description": "Reference",
+ "amount": {
+ "currency": "USD",
+ "total": 500
+ },
+ "allowPartial": false,
+ "subscribe": false
+ },
+ "returnUrl": "https://redirection.test/home",
+ "ipAddress": "127.0.0.1",
+ "userAgent": "PlacetoPay Sandbox",
+ "expiration": "2021-12-30T00:00:00-05:00"
+ },
+ "payment": [
+ {
+ "status": {
+ "status": "REJECTED",
+ "reason": "65",
+ "message": "65",
+ "date": "2021-11-30T16:22:19-05:00"
+ },
+ "internalReference": 1,
+ "paymentMethod": "visa",
+ "paymentMethodName": "Visa",
+ "issuerName": "CAIXA D'ESTALVIS UNIO DE CAIXES DE MANLLEU, SABADE",
+ "amount": {
+ "from": {
+ "currency": "USD",
+ "total": 100
},
- "request": {
- "locale": "es_CO",
- "payer": {
- "document": "1033332222",
- "documentType": "CC",
- "name": "Name",
- "surname": "LastName",
- "email": "dnetix@app.com",
- "mobile": "31111111111",
- "address": {
- "postalCode": "12345"
- }
- },
- "payment": {
- "reference": "331122",
- "description": "Reference",
- "amount": {
- "currency": "USD",
- "total": 500
- },
- "allowPartial": false,
- "subscribe": false
- },
- "returnUrl": "https://redirection.test/home",
- "ipAddress": "127.0.0.1",
- "userAgent": "PlacetoPay Sandbox",
- "expiration": "2021-12-30T00:00:00-05:00"
+ "to": {
+ "currency": "USD",
+ "total": 100
},
- "payment": [
- {
- "status": {
- "status": "REJECTED",
- "reason": "65",
- "message": "65",
- "date": "2021-11-30T16:22:19-05:00"
- },
- "internalReference": 1,
- "paymentMethod": "visa",
- "paymentMethodName": "Visa",
- "issuerName": "CAIXA D'ESTALVIS UNIO DE CAIXES DE MANLLEU, SABADE",
- "amount": {
- "from": {
- "currency": "USD",
- "total": 100
- },
- "to": {
- "currency": "USD",
- "total": 100
- },
- "factor": 1
- },
- "authorization": "000000",
- "reference": "331122",
- "franchise": "TS_VS",
- "refunded": false,
- "processorFields": [
- {
- "keyword": "lastDigits",
- "value": "1111",
- "displayOn": "none"
- }
- ]
- }
- ],
- "subscription": null
- }
- ```
+ "factor": 1
+ },
+ "authorization": "000000",
+ "reference": "331122",
+ "franchise": "TS_VS",
+ "refunded": false,
+ "processorFields": [
+ {
+ "keyword": "lastDigits",
+ "value": "1111",
+ "displayOn": "none"
+ }
+ ]
+ }
+ ],
+ "subscription": null
+}
+```
@@ -284,26 +348,47 @@ Se identifica como token, a la llave generada por un proceso de suscripción per
- ```bash {{ title: 'cURL' }}
- curl -X "POST" https://checkout-test.placetopay.com/api/instrument/invalidate \
- -H 'Content-Type: application/json' \
- -d '{
- "auth": {
- "auth": {
- "login": "c51ce410c124a10e0db5e4b97fc2af39",
- "tranKey": "VQOcRcVH2DfL6Y4B4SaK6yhoH/VOUveZ3xT16OQnvxE=",
- "nonce": "NjE0OWVkODgwYjNhNw==",
- "seed": "2021-09-21T09:34:48-05:00"
- }
- },
- "locale": "en_US",
- "instrument": {
- "token": {
- "token": "a3bfc8e2afb9ac5583922eccd6d2061c1b0592b099f04e352a894f37ae51cf1a"
- }
- }
- }'
- ```
+
+```bash {{ title: 'USANDO TOKEN' }}
+curl -X "POST" https://checkout-test.placetopay.com/api/instrument/invalidate \
+-H "Content-Type: application/json" \
+-d '{
+ "auth": {
+ "auth": {
+ "login": "c51ce410c124a10e0db5e4b97fc2af39",
+ "tranKey": "VQOcRcVH2DfL6Y4B4SaK6yhoH/VOUveZ3xT16OQnvxE=",
+ "nonce": "NjE0OWVkODgwYjNhNw==",
+ "seed": "2021-09-21T09:34:48-05:00"
+ }
+ },
+ "locale": "en_US",
+ "instrument": {
+ "token": {
+ "token": "a3bfc8e2afb9ac5583922eccd6d2061c1b0592b099f04e352a894f37ae51cf1a"
+ }
+ }
+}'
+```
+```bash {{ title: 'USANDO SUBTOKEN' }}
+curl -X "POST" https://checkout-test.placetopay.com/api/instrument/invalidate \
+-H "Content-Type: application/json" \
+-d '{
+ "auth": {
+ "auth": {
+ "login": "c51ce410c124a10e0db5e4b97fc2af39",
+ "tranKey": "VQOcRcVH2DfL6Y4B4SaK6yhoH/VOUveZ3xT16OQnvxE=",
+ "nonce": "NjE0OWVkODgwYjNhNw==",
+ "seed": "2021-09-21T09:34:48-05:00"
+ },
+ },
+ "locale": "en_US",
+ "instrument": {
+ "token": {
+ "subtoken": "8740257204881112"
+ }
+ }
+}'
+```
@@ -320,36 +405,36 @@ Se identifica como token, a la llave generada por un proceso de suscripción per
- ```json {{ title: 'Aprobado' }}
- {
- "status": {
- "status": "APPROVED",
- "reason": "00",
- "message": "La petición ha sido aprobada exitosamente",
- "date": "2022-07-27T14:51:27-05:00"
- }
- }
- ```
- ```json {{ title: 'Ok' }}
- {
- "status": {
- "status": "OK",
- "reason": "00",
- "message": "La petición ha sido aprobada exitosamente",
- "date": "2022-07-27T14:51:27-05:00"
- }
- }
- ```
- ```json {{ title: 'Fallido' }}
- {
- "status": {
- "status": "FAILED",
- "reason": "XN",
- "message": "El token usado es inválido",
- "date": "2022-07-27T14:51:27-05:00"
- }
- }
- ```
+```json {{ title: 'Aprobado' }}
+{
+ "status": {
+ "status": "APPROVED",
+ "reason": "00",
+ "message": "La petición ha sido aprobada exitosamente",
+ "date": "2022-07-27T14:51:27-05:00"
+ }
+}
+```
+```json {{ title: 'Ok' }}
+{
+ "status": {
+ "status": "OK",
+ "reason": "00",
+ "message": "La petición ha sido aprobada exitosamente",
+ "date": "2022-07-27T14:51:27-05:00"
+ }
+}
+```
+```json {{ title: 'Fallido' }}
+{
+ "status": {
+ "status": "FAILED",
+ "reason": "XN",
+ "message": "El token usado es inválido",
+ "date": "2022-07-27T14:51:27-05:00"
+ }
+}
+```
\ No newline at end of file