[ Foro de PHP ]

capturar valores del json

21-Apr-2021 16:22
Invitado (jose)
0 Respuestas

{
   "kr-hash": "58264c72ea48a6b1b92f9048494bcb456cd4e26dcdce2de89c67094c29e0de01",
   "kr-hash-algorithm": "sha256_hmac",
   "kr-answer-type": "V4\/Payment",
   "kr-answer": "{\"shopId\":\"69876357\",\"orderCycle\":\"CLOSED\",\"orderStatus\":\"PAID\",\"serverDate\":\"2021-04-21T14:01:17+00:00\",\"orderDetails\":{\"orderTotalAmount\":48,\"orderEffectiveAmount\":48,\"orderCurrency\":\"EUR\",\"mode\":\"TEST\",\"orderId\":\"THOR60803048eff45\",\"_type\":\"V4\/OrderDetails\"},\"customer\":{\"billingDetails\":{\"address\":null,\"category\":null,\"cellPhoneNumber\":null,\"city\":null,\"country\":null,\"district\":null,\"firstName\":null,\"identityCode\":null,\"language\":\"ES\",\"lastName\":null,\"phoneNumber\":null,\"state\":null,\"streetNumber\":null,\"title\":null,\"zipCode\":null,\"legalName\":null,\"_type\":\"V4\/Customer\/BillingDetails\"},\"email\":\"\",\"reference\":null,\"shippingDetails\":{\"address\":null,\"address2\":null,\"category\":null,\"city\":null,\"country\":null,\"deliveryCompanyName\":null,\"district\":null,\"firstName\":null,\"identityCode\":null,\"lastName\":null,\"legalName\":null,\"phoneNumber\":null,\"shippingMethod\":null,\"shippingSpeed\":null,\"state\":null,\"streetNumber\":null,\"zipCode\":null,\"_type\":\"V4\/Customer\/ShippingDetails\"},\"extraDetails\":{\"browserAccept\":null,\"fingerPrintId\":null,\"ipAddress\":\"200.37.185.26\",\"browserUserAgent\":\"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/89.0.4389.128 Safari\/537.36\",\"_type\":\"V4\/Customer\/ExtraDetails\"},\"shoppingCart\":{\"insuranceAmount\":null,\"shippingAmount\":null,\"taxAmount\":null,\"cartItemInfo\":null,\"_type\":\"V4\/Customer\/ShoppingCart\"},\"_type\":\"V4\/Customer\/Customer\"},\"transactions\":[{\"shopId\":\"69876357\",\"uuid\":\"be7b0804c52e438382c6a5ead80bdea8\",\"amount\":48,\"currency\":\"EUR\",\"paymentMethodType\":\"CARD\",\"paymentMethodToken\":null,\"status\":\"PAID\",\"detailedStatus\":\"AUTHORISED\",\"operationType\":\"DEBIT\",\"effectiveStrongAuthentication\":\"DISABLED\",\"creationDate\":\"2021-04-21T14:01:16+00:00\",\"errorCode\":null,\"errorMessage\":null,\"detailedErrorCode\":null,\"detailedErrorMessage\":null,\"metadata\":null,\"transactionDetails\":{\"liabilityShift\":\"NO\",\"effectiveAmount\":48,\"effectiveCurrency\":\"EUR\",\"creationContext\":\"CHARGE\",\"cardDetails\":{\"paymentSource\":\"EC\",\"manualValidation\":\"NO\",\"expectedCaptureDate\":\"2021-04-27T14:11:16+00:00\",\"effectiveBrand\":\"CB\",\"pan\":\"497010XXXXXX0055\",\"expiryMonth\":11,\"expiryYear\":2021,\"country\":\"FR\",\"issuerCode\":null,\"issuerName\":\"Banque de d\u00e9mo et de l'innovation\",\"effectiveProductCode\":\"F\",\"legacyTransId\":\"918663\",\"legacyTransDate\":\"2021-04-21T14:01:16+00:00\",\"paymentMethodSource\":\"NEW\",\"authorizationResponse\":{\"amount\":48,\"currency\":\"EUR\",\"authorizationDate\":\"2021-04-21T14:01:16+00:00\",\"authorizationNumber\":\"3fa77d\",\"authorizationResult\":\"0\",\"authorizationMode\":\"FULL\",\"_type\":\"V4\/PaymentMethod\/Details\/Cards\/CardAuthorizationResponse\"},\"captureResponse\":{\"refundAmount\":null,\"captureDate\":null,\"captureFileNumber\":null,\"refundCurrency\":null,\"_type\":\"V4\/PaymentMethod\/Details\/Cards\/CardCaptureResponse\"},\"threeDSResponse\":{\"authenticationResultData\":{\"transactionCondition\":null,\"enrolled\":null,\"status\":null,\"eci\":null,\"xid\":null,\"cavvAlgorithm\":null,\"cavv\":null,\"signValid\":null,\"brand\":null,\"_type\":\"V4\/PaymentMethod\/Details\/Cards\/CardAuthenticationResponse\"},\"_type\":\"V4\/PaymentMethod\/Details\/Cards\/ThreeDSResponse\"},\"authenticationResponse\":{\"id\":\"1cf4ff03-4f6a-4ada-ad46-05a90889d0ee\",\"operationSessionId\":\"bdb379a8ae71403ba56331ef5430b438\",\"protocol\":{\"name\":\"THREEDS\",\"version\":\"1.0.2\",\"network\":\"VISA\",\"challengePreference\":\"NO_PREFERENCE\",\"simulation\":true,\"_type\":\"V4\/Charge\/Authenticate\/Protocol\"},\"value\":{\"status\":\"ENROLLED_UNAVAILABLE\",\"extension\":{\"authenticationType\":\"THREEDS_V1\",\"enrolled\":\"U\",\"_type\":\"V4\/Charge\/Authenticate\/AuthenticationResultExtensionThreedsV1\"},\"_type\":\"V4\/Charge\/Authenticate\/AuthenticationResult\"},\"_type\":\"V4\/AuthenticationResponseData\"},\"installmentNumber\":null,\"installmentCode\":null,\"markAuthorizationResponse\":{\"amount\":null,\"currency\":null,\"authorizationDate\":null,\"authorizationNumber\":null,\"authorizationResult\":null,\"_type\":\"V4\/PaymentMethod\/Details\/Cards\/MarkAuthorizationResponse\"},\"cardHolderName\":null,\"identityDocumentNumber\":null,\"identityDocumentType\":null,\"_type\":\"V4\/PaymentMethod\/Details\/CardDetails\"},\"fraudManagement\":{\"_type\":\"V4\/PaymentMethod\/Details\/FraudManagement\"},\"subscriptionDetails\":{\"subscriptionId\":null,\"_type\":\"V4\/PaymentMethod\/Details\/SubscriptionDetails\"},\"parentTransactionUuid\":null,\"mid\":\"9876357\",\"sequenceNumber\":1,\"taxAmount\":null,\"preTaxAmount\":null,\"taxRate\":null,\"externalTransactionId\":null,\"nsu\":null,\"tid\":\"001\",\"acquirerNetwork\":\"CB\",\"taxRefundAmount\":null,\"userInfo\":\"JS Client\",\"paymentMethodTokenPreviouslyRegistered\":null,\"occurrenceType\":\"UNITAIRE\",\"_type\":\"V4\/TransactionDetails\"},\"_type\":\"V4\/PaymentTransaction\"}],\"_type\":\"V4\/Payment\"}",
   "kr-hash-key": "sha256_hmac"
}




(No se puede continuar esta discusión porque tiene más de dos meses de antigüedad. Si tienes dudas parecidas, abre un nuevo hilo.)