#Shakeel
1 messages · Page 1 of 1 (latest)
Hello, how can I help?
Getting Only one subscription is allowed per order error
while adding more than 1 product in cart
Hi! Can you share the request ID (req_xxx)? Here's how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
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>
?
Yes Stripe allows multiple line items in a checkout session.
I don't know how magento implements it, but if you are using Stripe API directly, you can specify the line_items here (https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items) when creating a checkout session
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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
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
Stripe API allows it. There's a possibility that magento implements a restriction and I'd suggest you to check with magento directly.
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?
I can show you code to call Stripe API directly, but I'm not sure if you can use it in the magento plugin.
yes please
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',
});
could you please ask your magento team how to solve this issue
You can reach out to Stripe support https://support.stripe.com/contact/email and tell them your feedback about magento plugin.
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
I have contacted there many times but nobody replies there
Even I am waiting since 2-3 months for the reply
I'd suggest you to send a follow-up email to them.
If you directly arrange the magento technical person in this chat then it would be great for us
The two prices that you tried to add into a checkout session, are they of the same billing intervals (i.e., both are monthly)
OK, Stripe won't accept if the the billing intervals are different (i.e., one monthly and one annual)
I have tried both like same billing intervals as well as different billing intervals
but the issue is same on checkout
No this is not a Stripe Checkout page. So I'm pretty sure it's a restriction implemented in the magento plugin.
https://stripe.com/docs/no-code/payment-links Alternatively you might want use our no-code solution payment link