How to differentiate accelerated checkout and normal card payment methods

Hi Team,
We are looking to store exact payment method name in our CRM database, which is used while express/accelerated checkout. For eg: GooglePay, Shop Pay, Apple Pay etc.
we have tried to get these name using transaction API " /admin/orders/id/transactions.json" but there we can not see the exact payment gateway name, we can see only “Shopify Payments”.

Also we have noticed that at admin order timeline and at frontend Thank you page, we can see the payment method used while checkout.

Please find the attached same image in zip file for your reference.
Request you to provide the guidance to differentiate normal card payment method and accelerated checkout payment method.

Thanks

Hey @kishormehare ,

We do not surface that information on the transaction object, but I can add this as a feature request for our developers on your behalf.

For now, if you want to find the gateway used to make a payment on an order I would recommend looking at the message field on the order’s events. This should show the same string as the Shopify Admin with either the REST or GraphQL admin APIs.

Cheers

Hi @JamesG ,
I have checked with the order payload but couldn’t find the alert message to find gateway details used while checkout.
Request you to provide the API details with the sample response payload. It would be helpful me to find gateway details and further development depends on it.
Also Please confirm that, will GraphQL payload display the gateway name for ShopPay / ApplePay like we tested with GooglePay and could see in admin order timeline.

Hi @kishormehare

The message will be in the Order’s events, rather than the actual Order object. I can confirm that Shop Pay works on my test store, but I haven’t tried it with Apple Pay.

If you use a query like this in REST it will return just the message from the “sale_success” verb, like what you would see in the admin:

/admin/api/2022-07/orders/{{order_id}}/events.json?verb=sale_success&fields=message

Alternatively, a query like this in graphQL should return the same message if you add the order_id as input:

query paymentInfo($id: ID!) {
	node(id: $id) {
		... on Order {
			events(first: 1, query: "verb:sale_success") {
				nodes {
					message
				}
			}
		}
	}
}