Fetch order details in offsite payment extension

Hi,

I am working on an Offsite payment extension. My payment gateway requires information about the purchased items (line name, line price).

Thanks

Hi

Since you do not receive the order ID directly when Shopify initiates an offsite payment session , you must:

  • Wait until the order is created in Shopify (after payment is completed).
  • Use the payment session id or gid to correlate with the order, either by searching in the Shopify admin or via the API if you have access.

If you have the order ID (for example, after the payment is completed and Shopify notifies your app), you can fetch order details using the Admin GraphQL API.

1 Like

Hi @Liam-Shopify Thanks i was actually able to do this using order graphQL query

1 Like

Hello, I also have this issue. Under the Offsite payment extension, how can I obtain the product information of the order before the user makes the payment?How did you solve it? Could you tell me? I would greatly appreciate it!