Load Qliro with Logged in Customers details

Litium version: [8.9.1]
We need to load our Qliro app at the checkout with logged in customer’s basic details such as email, mobile number,shipping addresses etc.

  1. We installed qliro app based on litium documentation.
  2. Created an api based on the instructions in the following url
    https://developers.qliro.com/docs/qliro-one/(https://docs.litium.com/add-ons/litium-apps/qliro-paymentget-started/notifications-checkout#update-shipping-addresses
  3. Updated our qliro config file with the AvailableShippingAdressesBackendUrl with our new api created
    It is expected that the api should be invoked when checkout loads, which is not happening .
    Can any one suggests me a way to invoke the call back api ? OR any avaialble methods to load Qliro with logged in customer’s details from litium ?

is there any thing that we could do ?

The customer information that is on the order is forwarded to Qliro, did you set the customer information on the order?

Did you also set the EnableShippingMethods configuration option in the Qliro configuraiton?

Did you test this on an public accessible domain name for the Qliro app so the callback request from Qliro can reach the payment app?

When you check the log for the payment app, what is the request data that is sent to Qliro during order creation?

Below is the request content from the logs from the Test environment (https://coptikktest.coptikk.com) which is a public accessible domain name.

{“id”:“LSP10759”,“cartContextSystemId”:“eb58fb99-f517-4088-b9c2-f9fba1ada53e”,“systemId”:“6381a17b-ba46-4ce3-9df4-b6624dc67cd3”,“countryCode”:“NO”,“currencyCode”:“NOK”,“locale”:“nb-NO”,“clientIp”:“46.235.236.64”,“clientBrowser”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36”,“paymentOptionId”:“NO One”,“paymentProviderId”:“QliroPayment”,“additionalInfo”:{“OpticianId”:“C121”},“billingAddress”:{“firstName":“GOKUL”,“lastName”:“TEST”,“address1”:“test”,“city”:“Oslo”,“country”:“NO”,“email”:"gokul.gopi@spoton.se”,“mobilePhone”:“46763084509”,“zipCode”:“2897”},“customerInfo”:{“customerId”:“LSC100434”},“checkoutFlowInfo”:{“termsUrl”:“/terms-and-conditions”,“checkoutPageUrl”:“https://coptikktest.coptikk.com/handlekurv",“receiptPageUrl”:“https://coptikktest.coptikk.com/Litium/api/connect/payments/6381a17b-ba46-4ce3-9df4-b6624dc67cd3/action/showReceipt?id=eb58fb99-f517-4088-b9c2-f9fba1ada53e”,“cancelPageUrl”:“https://coptikktest.coptikk.com/handlekurv”,“additionalInfo”:{},“billingCountries”:[“NO”],“allowSeparateShippingAddress”:true,“shippingTags”:[],“shippingOptions”:[]},“rows”:[{“productUrl”:“https://coptikktest.coptikk.com/kontaktlinser/maanedslinser/air-optix-plus-hydraglyde-astigmatism-6-linser”,“productImageUrl”:“https://coptikktest.coptikk.com/storage/1974F6534D0782079BFFE9ADD4C01DF5C07B4BE9B347CBEB7D15AD4C3838001A/eea3211cd7fb4645a1140174b4a99567/png/media/de7b423ffec54fca8e155c53e564f0fc/Air-Optix-Plus-Hydraglyde-Astigmatism.png”,“productType”:“physicalGood”,“productData”:{},“articleNumber”:“AOPHGA-6”,“description”:"Air Optix Plus HydraGlyde for Astigmatism, 6 linser”,“quantity”:4.0,“unitPriceIncludingVat”:669.0,“unitPriceExcludingVat”:535.2,“totalIncludingVat”:2676.0,“totalExcludingVat”:2140.8,“vatRate”:0.25,“totalVat”:535.2,“orderRowId”:“2”,“additionalInfo”:{“EyeParametersInfo”:“[{"$id":"1","quantity":1.0,"articleNumber":"AOPHGA-6","rightStrength":null,"rightCurve":null,"rightDiameter":null,"rightCylinder":null,"rightAxis":null,"rightPacket":null,"leftStrength":"-8.5","leftCurve":"8.7","leftDiameter":"14.5","leftCylinder":"1.75","leftAxis":"160","leftPacket":4,"leftAdd":"","rightAdd":null,"leftColor":"","rightColor":null,"rightEyeProductNumber":null,"leftEyeProductNumber":null,"eyeParametersCombined":"AOPHGA-6-8.58.714.51.75160","identifier":"85e08210-ef0a-42e3-a371-ddfefb2bb92a","isRight":false,"isDelete":false}]”},“vatSummary”:{“0.25”:535.2},“vatDetails”:[{“vatRate”:0.25,“amountIncludingVat”:2676.0,“vat”:535.2}]},{“productUrl”:“https://coptikktest.coptikk.com/kontaktlinser/endagslinser/dailies-total-1-90-linser",“productImageUrl”:“https://coptikktest.coptikk.com/storage/25D504DF371929081C37A074090CFAF0762206B1A1A761E9C4DA87002F412456/92530820b6a743d494d5bb73bbc5cd09/png/media/a6b6a3b0fe5146fdb9be8ecf1d09edbd/Dailies-total-1.png”,“productType”:“physicalGood”,“productData”:{},“articleNumber”:“DT1-90”,“description”:"Dailies Total 1, 90 linser”,“quantity”:3.0,“unitPriceIncludingVat”:899.0,“unitPriceExcludingVat”:719.2,“totalIncludingVat”:2697.0,“totalExcludingVat”:2157.6,“vatRate”:0.25,“totalVat”:539.4,“orderRowId”:“1”,“additionalInfo”:{“EyeParametersInfo”:“[{"$id":"1","quantity":1.0,"articleNumber":"DT1-90","rightStrength":"-11.5","rightCurve":"8.5","rightDiameter":"14.1","rightCylinder":"","rightAxis":"","rightPacket":3,"leftStrength":null,"leftCurve":null,"leftDiameter":null,"leftCylinder":null,"leftAxis":null,"leftPacket":null,"leftAdd":null,"rightAdd":"","leftColor":null,"rightColor":"","rightEyeProductNumber":null,"leftEyeProductNumber":null,"eyeParametersCombined":"DT1-90-11.58.514.1","identifier":"a0ef976d-7a46-4943-887e-c0df59840903","isRight":false,"isDelete":false}]”},“vatSummary”:{“0.25”:539.4},“vatDetails”:[{“vatRate”:0.25,“amountIncludingVat”:2697.0,“vat”:539.4}]},{“type”:“shippingFee”,“articleNumber”:“DirectShipment:standardPackage”,“description”:“Frakt”,“quantity”:1.0,“unitPriceIncludingVat”:50.0,“unitPriceExcludingVat”:40.0,“totalIncludingVat”:50.0,“totalExcludingVat”:40.0,“vatRate”:0.25,“totalVat”:10.0,“orderRowId”:“3”,“vatSummary”:{“0.25”:10.0},“vatDetails”:[{“vatRate”:0.25,“amountIncludingVat”:50.0,“vat”:10.0}]},{“type”:“discount”,“description”:“Order discount”,“quantity”:1.0,“unitPriceIncludingVat”:-268.65,“unitPriceExcludingVat”:-214.92,“totalIncludingVat”:-268.65,“totalExcludingVat”:-214.92,“vatRate”:0.25,“totalVat”:-53.73,“orderRowId”:“4”,“vatSummary”:{“0.25”:-53.73},“vatDetails”:[{“vatRate”:0.25,“amountIncludingVat”:-268.65,“vat”:-53.73}]},{“type”:“discount”,“description”:“Free delivery”,“quantity”:1.0,“unitPriceIncludingVat”:-50.0,“unitPriceExcludingVat”:-40.0,“totalIncludingVat”:-50.0,“totalExcludingVat”:-40.0,“vatRate”:0.25,“totalVat”:-10.0,“orderRowId”:“5”,“vatSummary”:{“0.25”:-10.0},“vatDetails”:[{“vatRate”:0.25,“amountIncludingVat”:-50.0,“vat”:-10.0}]}],“totalIncludingVat”:5104.35,“totalExcludingVat”:4083.48,“totalVat”:1020.87}

configuration file looks like this

The configuration should use the EnableShippingAddress instead of EnableShippingMethods, this property was missed on Qliro payment (litium.com) that I have updated. I also added a line about how to access the cart context from the callback.

And when you have changed the configuration, ensure that you remove the cookies for the cart so a new cart is initiated and urls are sent to Qliro on checkout.

now we have tried changing the configuration file in test environment, but still can’t see any changes yet (removed all cookies), should we get the call back url in the request content? or is there any way to know if the call back is triggered?

If you check the logs for the payment app, you are able to see the data that is sent to Qliro, example the last cart was looking like this.

{
    "MerchantReference": "0HN08ADVQQ09N",
    "Currency": "NOK",
    "Country": "NO",
    "Language": "nb-NO",
    "MerchantTermsUrl": "https://coptikk-test-qliro-payment.litium.app/api/redirect/aef84e3c-1a92-4215-8e12-4771e07939a0/terms",
    "MerchantConfirmationUrl": "https://coptikk-test-qliro-payment.litium.app/api/redirect/aef84e3c-1a92-4215-8e12-4771e07939a0/confirmation",
    "MerchantOrderValidationUrl": "https://coptikk-test-qliro-payment.litium.app/api/notification/aef84e3c-1a92-4215-8e12-4771e07939a0/validation",
    "MerchantOrderManagementStatusPushUrl": "https://coptikk-test-qliro-payment.litium.app/api/notification/aef84e3c-1a92-4215-8e12-4771e07939a0/orderManagementPushNotification",
    "MerchantCheckoutStatusPushUrl": "https://coptikk-test-qliro-payment.litium.app/api/notification/aef84e3c-1a92-4215-8e12-4771e07939a0/pushNotification",
    "MerchantOrderAvailableShippingAddressesUrl": "https://coptikk-test-qliro-payment.litium.app/api/notification/aef84e3c-1a92-4215-8e12-4771e07939a0/available-shipping-address",
    "PrimaryColor": "#004f68",
    "CallToActionColor": "#004F68",
    "CallToActionHoverColor": "#216E86",
    "BackgroundColor": "#FFFFFF",
    "CornerRadius": 30,
    "ButtonCornerRadius": 25,
    "OrderItems": [
        {
            "MerchantReference": "DirectShipment:standardPackage",
            "Description": "Frakt",
            "Type": "Shipping",
            "Quantity": 1,
            "PricePerItemIncVat": 50.0,
            "PricePerItemExVat": 0.0
        }
    ],
    "CustomerInformation": {
        "JuridicalType": "Physical",
        "Address": {},
        "ShippingAddress": {}
    },
    "MerchantApiKey": "QTEST"
}

And there we can see that the MerchantOrderAvailableShippingAddressesUrl is included but how and when Qliro is using this url is something that I think Qliro support can answer better.

Thanks, We will check with Qliro support and get back.

Qliro support says they are getting a 400 error accessing the url, with the request you have pasted above. Could you also tell us how we can get the payment app logs?

{

"MerchantReference": "0HN08ADVQQ09N",

"Currency": "NOK",

"Country": "NO",

"Language": "nb-NO",

"MerchantTermsUrl": "https://coptikk-test-qliro-payment.litium.app/api/redirect/aef84e3c-1a92-4215-8e12-4771e07939a0/terms",

"MerchantConfirmationUrl": "https://coptikk-test-qliro-payment.litium.app/api/redirect/aef84e3c-1a92-4215-8e12-4771e07939a0/confirmation",

"MerchantOrderValidationUrl": "https://coptikk-test-qliro-payment.litium.app/api/notification/aef84e3c-1a92-4215-8e12-4771e07939a0/validation",

"MerchantOrderManagementStatusPushUrl": "https://coptikk-test-qliro-payment.litium.app/api/notification/aef84e3c-1a92-4215-8e12-4771e07939a0/orderManagementPushNotification",

"MerchantCheckoutStatusPushUrl": "https://coptikk-test-qliro-payment.litium.app/api/notification/aef84e3c-1a92-4215-8e12-4771e07939a0/pushNotification",

"MerchantOrderAvailableShippingAddressesUrl": "https://coptikk-test-qliro-payment.litium.app/api/notification/aef84e3c-1a92-4215-8e12-4771e07939a0/available-shipping-address",

"PrimaryColor": "#004f68",

"CallToActionColor": "#004F68",

"CallToActionHoverColor": "#216E86",

"BackgroundColor": "#FFFFFF",

"CornerRadius": 30,

"ButtonCornerRadius": 25,

"OrderItems": [

    {

        "MerchantReference": "DirectShipment:standardPackage",

        "Description": "Frakt",

        "Type": "Shipping",

        "Quantity": 1,

        "PricePerItemIncVat": 50,

        "PricePerItemExVat": 0

    }

],

"CustomerInformation": {

    "JuridicalType": "Physical",

    "Address": {},

    "ShippingAddress": {}

},

"MerchantApiKey": "QTEST"

}

To get access to environments or logs, contact Litium Support

issue seems to be that we don’t have products inside the order items? this is a recent log and it only has Type shipping inside order items, is that expected?

also is it okay that I add you in the mail conversation with Qliro?

{“MerchantReference”:“0HN08DMKGHRAC”,“Currency”:“NOK”,“Country”:“NO”,“Language”:“nb-NO”,“MerchantTermsUrl”:“https://coptikk-test-qliro-payment.litium.app/api/redirect/22422aeb-7c1c-4b7c-90f3-f8c839249a39/terms",“MerchantConfirmationUrl”:“https://coptikk-test-qliro-payment.litium.app/api/redirect/22422aeb-7c1c-4b7c-90f3-f8c839249a39/confirmation”,“MerchantOrderValidationUrl”:“https://coptikk-test-qliro-payment.litium.app/api/notification/22422aeb-7c1c-4b7c-90f3-f8c839249a39/validation”,“MerchantOrderManagementStatusPushUrl”:“https://coptikk-test-qliro-payment.litium.app/api/notification/22422aeb-7c1c-4b7c-90f3-f8c839249a39/orderManagementPushNotification”,“MerchantCheckoutStatusPushUrl”:“https://coptikk-test-qliro-payment.litium.app/api/notification/22422aeb-7c1c-4b7c-90f3-f8c839249a39/pushNotification”,“MerchantOrderAvailableShippingAddressesUrl”:“https://coptikk-test-qliro-payment.litium.app/api/notification/22422aeb-7c1c-4b7c-90f3-f8c839249a39/available-shipping-address”,“PrimaryColor”:“#004f68”,“CallToActionColor”:“#004F68”,“CallToActionHoverColor”:“#216E86”,“BackgroundColor”:“#FFFFFF”,“CornerRadius”:30,“ButtonCornerRadius”:25,“OrderItems”:[{“MerchantReference”:“DirectShipment:standardPackage”,“Description”:“Frakt”,“Type”:“Shipping”,“Quantity”:1,“PricePerItemIncVat”:50.0,“PricePerItemExVat”:40.0}],“CustomerInformation”:{“JuridicalType”:“Physical”,“Address”:{“FirstName”:“GOKUL”,“LastName”:“TEST”,“Street”:“test”,“PostalCode”:“2897”,“City”:“Oslo”},“ShippingAddress”:{}},“MerchantApiKey”:"QTEST”}

What are logged in litium log for the communication with the payment app?

If you need specific help you should open an support case and there you can also invite other persons, it’s very hard to help on the forum when it come to specific implementation problems where PII data can be included.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.