Subscriptions from FastStore to VTEX IO Checkout

Hi,

I’m trying to send the subscription frequency chosen by the user by selecting a subscription in PDP. I’ve extended the product() query to render available subscriptions plans in PDP, but I don’t understand the attachment object structure to send with addToCart. To be more precise, I would to replicate the subscription button behaviour that we experiment using VTEX IO ProductDetails page.

Could you please help me?

Thank you

Hello s.mulas,

I believe this should follow the same formatting and structure as the ProductContext in the native add-to-cart-button component, as per the github link below:

Did you try implementing a similar method?