Tags:
- API
- 2023-10
payment_method_name available in PaymentDetails GraphQL and REST APIs to check for Shop Pay Installments transactions
payment_method_name available in PaymentDetails GraphQL and REST APIs to check for Shop Pay Installments transactionsAs of 2023-10, a new field is available in the GraphQL API and the property in the Transaction resource of the Admin REST API. This field provides information about the payment method used to process an order transaction.
This update is in preparation for changes releasing in January 2024 where new Shop Pay Installment transactions will have a gateway value of .
Once released, relying on the gateway value to determine if an order is a Shop Pay Installments transaction will no longer be feasible. Instead, it will be necessary to utilize the value to identify the transaction type.
For example, you can identify Shop Pay Installments transactions by checking that has a value of . For historical orders prior to 2023-10, you still need to check the gateway value to identify Shop Pay Installments orders.
Learn more about the change in the PaymentDetails GraphQL API doc and Admin REST API doc for Transactions.