#Shakeel

1 messages · Page 1 of 1 (latest)

trail portalBOT
unkempt laurel
#

Hello, how can I help?

late moth
#

Getting Only one subscription is allowed per order error

#

while adding more than 1 product in cart

unkempt laurel
late moth
#

I am getting this error Only one subscription is allowed per order in magento 2

#

Is stripe allow multiple product in cart

#

?

#

or how we can achieve it>

#

?

unkempt laurel
#

Yes Stripe allows multiple line items in a checkout session.

late moth
#

in line_items I think this work for multiple qty for a same product

#

we we need to add two different different subscription based product in cart

unkempt laurel
#

If you read the API doc, it says

For subscription mode, there is a maximum of 20 line items with recurring Prices and 20 line items with one-time Prices. Line items with one-time Prices will be on the initial invoice only.```
#

So multiple line items with recurring Prices are allowed

late moth
#

this is for the same product

#

but I need to add two different different product

unkempt laurel
#

Stripe API allows it. There's a possibility that magento implements a restriction and I'd suggest you to check with magento directly.

late moth
#

For magento we are using your module

#

so can you please suggest where we can the restriction

#

find the restrcition

#

or is there any code?

unkempt laurel
#

I can show you code to call Stripe API directly, but I'm not sure if you can use it in the magento plugin.

late moth
#

yes please

unkempt laurel
#
const session = await stripe.checkout.sessions.create({
  success_url: 'https://example.com/success',
  lline_items:[
    {
      price: 'price_1MvaqfKmcV1mkkRSDV5TjNv1', 
      quantity: 1
    },
    {
      price: 'price_1LfILGKmcV1mkkRStidrwlRv',
      quantity:1 
    }
  ]
  mode: 'subscription',
});
late moth
#

could you please ask your magento team how to solve this issue

unkempt laurel
#

You can reach out to Stripe support https://support.stripe.com/contact/email and tell them your feedback about magento plugin.

late moth
#

I have contacted there many times but nobody replies there

#

Even I am waiting since 2-3 months for the reply

unkempt laurel
#

I'd suggest you to send a follow-up email to them.

late moth
#

I have folloewd tem since last 2-3 months as I said

#

but no response

#

them*

unkempt laurel
#

Can I have your email address?

#

Thanks I've deleted this in the chat

late moth
#

If you directly arrange the magento technical person in this chat then it would be great for us

unkempt laurel
#

The two prices that you tried to add into a checkout session, are they of the same billing intervals (i.e., both are monthly)

late moth
#

yes

#

if both are same then what happen?

unkempt laurel
#

OK, Stripe won't accept if the the billing intervals are different (i.e., one monthly and one annual)

late moth
#

I have tried both like same billing intervals as well as different billing intervals

#

but the issue is same on checkout

unkempt laurel
#

No this is not a Stripe Checkout page. So I'm pretty sure it's a restriction implemented in the magento plugin.

late moth
#

Its a magento chekcout

#

because we have integrated your stripe module

unkempt laurel
#

Hmm, it's a limitation on magento then

#

Stripe checkout doesn't have this limitation.