Access to order data from 3. party payment plugin

We have “By Now Pay Later (BNPL)” payment methods, Invoice Payment (Pay in 30 days) and Instalments - which are the two main BNPL methods that our customers (merchants) need and request.

Due to fraud and risk checks, we need to know which items are in the customer’s basket before we can approve invoice or installment payment for a customer. So this is only used for risk assessments. Concretely, we would need access to “basketItems”, e.g. (in technical terms)

“basketItems”:[

{

“amountDiscountPerUnitGross”:1.0,

“amountPerUnitGross”:20.0,

“basketItemReferenceId”:“Item-d030efbd4963”,

“quantity”:10,

“title”:“SDM 6 CABLE”,

“vat”:19.0

}

Is there a way for us to get access to this? Our understanding is that other BNPL providers like Klarna (outside of Shopify Payments) and riverty also have access to this.

It should be possible to use the AJAX API to get current cart contents before the customer visits checkout, would this work for you? See: Cart API reference

but will this not require access to PCD which is not allowed for 3. party payment gateway apps?