@@ -138,7 +138,7 @@ public function query($requestId): FulfilledPromise
138
138
$ response =
'{"requestId": 10008,"status": {"status": "APPROVED","reason": "00","message": "La petición ha sido aprobada exitosamente","date": "2021-09-14T19:57:23-05:00"},"request": {"locale": "es_CO","buyer": {"document": "1040035000","documentType": "CC","name": "Nakia","surname": "Walker","email": "[email protected] ","mobile": 3006108300},"payer": {"document": "1040035000","documentType": "CC","name": "Nakia","surname": "Walker","email": "[email protected] ","mobile": 3006108300},"payment": {"reference": "800166551","description": "Pago en micrositio","amount": {"currency": "COP","total": 3809000},"allowPartial": true,"subscribe": false},"fields": [{"keyword": "_processUrl_","value": "https://checkout-test.placetopay.com/session/1847214/3c8d4117e08c5970291c79dfa8d4237a","displayOn": "none"}],"returnUrl": "https://dnetix.co/ping/test","ipAddress": "186.84.220.137","userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 14_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.1 Mobile/15E148 Safari/604.1","expiration": "2021-10-19T17:05:23-05:00"},"payment": [{"status": {"status": "APPROVED","reason": "00","message": "Aprobada","date": "2021-09-14T19:57:09-05:00"},"internalReference": 1519097768,"paymentMethod": "master","paymentMethodName": "Master","issuerName": "Banco del Pacifico, S.A.","amount": {"from": {"currency": "COP","total": 2009000},"to": {"currency": "COP","total": 2009000},"factor": 1},"authorization": "999999","reference": "800166551","receipt": 67429,"franchise": "RM_MC","refunded": false,"processorFields": [{"keyword": "merchantCode","value": "0010203040","displayOn": "none"},{"keyword": "terminalNumber","value": "ESB11134","displayOn": "none"},{"keyword": "bin","value": "518030","displayOn": "none"},{"keyword": "expiration","value": "0125","displayOn": "none"},{"keyword": "installments","value": 4,"displayOn": "none"},{"keyword": "lastDigits","value": "0005","displayOn": "none"}]},{"status": {"status": "APPROVED","reason": "00","message": "Aprobada","date": "2021-09-14T19:56:25-05:00"},"internalReference": 1519097729,"paymentMethod": "visa","paymentMethodName": "Visa","issuerName": "JPMORGAN CHASE BANK, N.A.","amount": {"from": {"currency": "COP","total": 800000},"to": {"currency": "COP","total": 800000},"factor": 1},"authorization": "000000","reference": "800166551","receipt": 99967385,"franchise": "CR_VS","refunded": false,"processorFields": [{"keyword": "merchantCode","value": "011271442","displayOn": "none"},{"keyword": "terminalNumber","value": "00057742","displayOn": "none"},{"keyword": "bin","value": "411111","displayOn": "none"},{"keyword": "expiration","value": "1122","displayOn": "none"},{"keyword": "installments","value": 5,"displayOn": "none"},{"keyword": "lastDigits","value": "****1111","displayOn": "none"}]},{"status": {"status": "APPROVED","reason": "00","message": "Aprobada","date": "2021-09-14T19:55:55-05:00"},"internalReference": 1519097680,"paymentMethod": "pse","paymentMethodName": "Cuentas débito ahorro y corriente (PSE)","issuerName": "BANCO UNION COLOMBIANO","amount": {"from": {"currency": "COP","total": "1000000.00"},"to": {"currency": "COP","total": "1000000.00"},"factor": 1},"authorization": "2408909","reference": "800166551","receipt": "1519097680","franchise": "_PSE_","refunded": false,"processorFields": [{"keyword": "merchantCode","value": "9002992280","displayOn": "none"},{"keyword": "terminalNumber","value": "001","displayOn": "none"},{"keyword": "transactionCycle","value": "6","displayOn": "none"},{"keyword": "trazabilyCode","value": "2408909","displayOn": "none"}]}],"subscription": null} ' ;
139
139
break ;
140
140
case 10009 :
141
- $ response =
'{"requestid": 10009,"status": {"status": "approved","reason": "00","message": "la petición ha sido aprobada exitosamente","date": "2021-09-14t19:16:59-05:00"},"request": {"locale": "es_co","buyer": {"document": "1040035000","documenttype": "cc","name": "nakia","surname": "walker","email": "[email protected] ","mobile": 3006108300},"payer": {"document": "1040035000","documenttype": "cc","name": "nakia","surname": "walker","email": "[email protected] ","mobile": 3006108300},"subscription": {"reference": "800166551","description": "pago en micrositio"},"returnurl": "https://dnetix.co/ping/test","ipaddress": "186.84.220.137","useragent": "mozilla/5.0 (iphone; cpu iphone os 14_6 like mac os x) applewebkit/605.1.15 (khtml, like gecko) version/14.1.1 mobile/15e148 safari/604.1","expiration": "2021-09-19t17:05:23-05:00"},"payment": null,"subscription": {"type": "account","status": {"status": "ok","reason": "00","message": "account stored successfully","date": "2021-09-15t00:16:45.345048z"},"instrument": [{"keyword": "bankcode","value": "007","displayon": "none"},{"keyword": "bankname","value": "bancolombia","displayon": "none"},{"keyword": "accounttype","value": "a","displayon": "none"},{"keyword": "accountnumber","value": "00849514000","displayon": "none"}]}} ' ;
141
+ $ response =
'{"requestId": 10009,"status": {"status": "APPROVED","reason": "00","message": "La petición ha sido aprobada exitosamente","date": "2021-09-14T19:16:59-05:00"},"request": {"locale": "es_CO","buyer": {"document": "1040035000","documentType": "CC","name": "Nakia","surname": "Walker","email": "[email protected] ","mobile": 3006108300},"payer": {"document": "1040035000","documentType": "CC","name": "Nakia","surname": "Walker","email": "[email protected] ","mobile": 3006108300},"subscription": {"reference": "800166551","description": "Pago en micrositio"},"returnUrl": "https://dnetix.co/ping/test","ipAddress": "186.84.220.137","userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 14_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.1 Mobile/15E148 Safari/604.1","expiration": "2021-09-19T17:05:23-05:00"},"payment": null,"subscription": {"type": "account","status": {"status": "OK","reason": "00","message": "Account stored successfully","date": "2021-09-15T00:16:45.345048Z"},"instrument": [{"keyword": "bankCode","value": "007","displayOn": "none"},{"keyword": "bankName","value": "Bancolombia","displayOn": "none"},{"keyword": "accountType","value": "A","displayOn": "none"},{"keyword": "accountNumber","value": "00849514000","displayOn": "none"}]}} ' ;
142
142
break ;
143
143
case 10010 :
144
144
$ response =
'{"requestId": 328759,"status": {"status": "APPROVED","reason": "00","message": "La petici\u00f3n ha sido aprobada exitosamente","date": "2021-09-23T19:00:08-05:00"},"request": {"locale": "es_CO","buyer": {"document": "1040035000","documentType": "CC","name": "Nakia","surname": "Walker","email": "[email protected] ","mobile": 3006108300},"payer": {"document": "1036949824","documentType": "CI","name": "Diego","surname": "osorio","email": "[email protected] ","mobile": "3102903560"},"payment": {"reference": "800166551","description": "Pago en micrositio","amount": {"currency": "COP","total": 3809000},"allowPartial": true,"subscribe": false},"fields": [{"keyword": "_processUrl_","value": "https:\/\/test.placetopay.ec\/redirection\/session\/328759\/ccad4021c274a7dc3ef71f526f2b1cb5","displayOn": "none"}],"returnUrl": "https:\/\/dnetix.co\/ping\/test","ipAddress": "186.84.220.137","userAgent": "Mozilla\/5.0 (iPhone; CPU iPhone OS 14_6 like Mac OS X) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/14.1.1 Mobile\/15E148 Safari\/604.1","expiration": "2021-10-19T17:05:23-05:00"},"payment": [{"status": {"status": "APPROVED","reason": "00","message": "Aprobada","date": "2021-09-23T18:59:45-05:00"},"internalReference": "230192","paymentMethod": "diners","paymentMethodName": "Diners","issuerName": "Diners","amount": {"from": {"currency": "COP","total": 3809000},"to": {"currency": "USD","total": 990.58},"factor": 0.0002600630086636913},"authorization": "999999","reference": "800166551","receipt": "230192","franchise": "ID_DN","refunded": false,"processorFields": [{"keyword": "merchantCode","value": "1065152","displayOn": "none"},{"keyword": "terminalNumber","value": "00990099","displayOn": "none"},{"keyword": "credit","value": {"code": 1,"type": "03","groupCode": "X","installments": 9},"displayOn": "none"},{"keyword": "totalAmount","value": 3809000.0,"displayOn": "none"},{"keyword": "interestAmount","value": 0,"displayOn": "none"},{"keyword": "installmentAmount","value": 423205.13,"displayOn": "none"},{"keyword": "iceAmount","value": 0,"displayOn": "none"},{"keyword": "bin","value": "365454","displayOn": "none"},{"keyword": "expiration","value": "1122","displayOn": "none"},{"keyword": "lastDigits","value": "0008","displayOn": "none"}]}],"subscription": null} ' ;
0 commit comments