Skip to main content

Callback to redirect URL reference

This is the same callback that is described in point 3 with the following differences:

  • The generated tokenId will be obfuscated
  • New field subscriptionId in the root

MESSAGE TO REDIRECT URL EXAMPLE - SUCCESSFUL TRANSACTION OF SUBSCRIPTION WITHOUT FALLBACK

[
{
"subscriptionId": "0192b445-55a7-74af-a5d1-79ca6d2310f4",
"orderId": "2989ce95-4309-4f24-a81a-f8dc27c9f20d",
"transactionId": "c2c53654-c51e-4463-954f-3d6674085479",
"transactionStatus": "success",
"createdAt": "2023-01-12T12:41:29.214Z",
"tokenId": "********",
"mid": {
"id": "214f0c35-dc8a-42dd-828d-9576d967e007",
"providerApi": "trustpay",
"paymentSolution": "SolutionTP"
},
"liabilityShift": false,
"cardInfo": {
"cardHolder": "Ak da Bilbao",
"cardNumber": "*****cardNumber",
"expireDate": {
"year": "2034",
"month": "05"
},
"binInfo": {
"cardBrand": "visa",
"country": "US",
"bankInfo": {
"bank": "JPMORGAN CHASE BANK, N.A.",
"website": "www.jpmorganchase.com",
"phone": "416-981-9200"
}
}
},
"orderInfo": {
"description": "entertainment subscription",
"concept": "test",
"userInformation": {
"ip": "251.251.213.216",
"email": "TEST+12@trustpay.es",
"country": "ES",
"language": "ES",
"browserInformation": {
"userAgentHeader": "Mozilla/5.0",
"acceptHeader": "text/html",
"fingerprint": "4sd54dfsafgsadf5"
}
},
"domain": "HTTPS://WWW.QA_TRUSTPAY.COM",
"customTag": "QA_TRUSTPAY",
"eventSubscriptionUrl": "https://2ec7-54-73-197-22.ngrok-free.app/events",
"redirectUrl": {
"success": "www.merchant-domain.es/success",
"fail": "www.merchant-domain.es/failed"
}
},
"operationResult": {
"chargedAmount": {
"amount": 9.98,
"currency": "EUR"
}
},
"paymentMethod": "credit_card_ciphered_data",
"isFallback": false,
"version": 2
}
]