Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Js Buy SDK add subscription while adding product also i have integer product ids

Js Buy SDK add subscription while adding product also i have integer product ids

MuhammadYousaf
Visitor
1 0 0

Hello,

            I am working on next js which is useing headless Shopify and Js Buy SDK for checkout and adding line items to checkout. We want to give subscription option to user. For that i read and come to know that we need to use grapql. So using graphql have fetched products with subscription plans. Now problem is i have "integer product ids" and also "interger plan ids", Can i use integer product ids and how i can add plans to checkout

addLineItems product(integer) also have varient id(integer) and plan id(integer)

Or any alternative to achive it. 

Replies 0 (0)