Project

General

Profile

Edit Copy Actions

Bug #7050

open

Service Subscription payment fails on Stripe submit (Customer & Admin flows)

Added by Sai Mahananda 8 days ago. Updated 6 days ago.

Status:
Re-Open
Priority:
Normal
Target version:
-
Start date:
01/21/2026
Due date:
% Done:

100%

Estimated time:
4:00 h
Spent time:
Tested Date:
01/21/2026
Raised by Tester:
Mahananda Sai
Page/ Module (POS):
Subscriptions – service Plans

Description

Steps to Reproduce:
1. Create a Service Subscription.
2. Generate payment link and send to customer via email.
OR
Open the invoice page and attempt payment as Admin.
3. Click the payment link and proceed to Stripe checkout.
4. Enter valid payment details and click Submit.

Actual Result:
Payment fails after clicking Submit on Stripe.
An error is displayed and the transaction does not complete,
in both Customer payment flow (via email) and Admin payment flow (via invoice page).

Expected Result:
Payment should be processed successfully via Stripe,
and the system should redirect to a success/confirmation page
for both Customer and Admin payment flows.

Impact:
Service Subscription payments cannot be completed,
blocking customer subscriptions and revenue collection.


Files


Add

Subtasks


Add

Related issues

Updated by Anonymous 8 days ago

started

Actions #2

Updated by Ajit A 8 days ago

  • Status changed from New to In Progress

Updated by Anonymous 8 days ago

  • % Done changed from 0 to 90
  • Estimated time set to 2:00 h

Fixed Stripe “No such price” failures by validating variant.stripePriceId in Stripe before using it; if missing/invalid, a new Stripe Product+Price is created and saved back to the variant.
Updated in:
src/services/subscripiton.service.js (createSubscriptionCheckout, createSubscriptionSeason, createSubscriptionFromInvoice, createSubscriptionFromInvoiceOld, createSubscriptionCheckoutRequest)
src/routes/EvergreenInvoice/EverGreen-invoice-controller.js (subscription flow inside addInstallmentAndPayWithSubscription)
Fixed subscription webhook flow when Stripe invoice doesn’t include invoice.subscription:
Added extractSubscriptionIdFromInvoice() to pull subscription id from multiple invoice locations.
Enhanced handleInvoicePaidEvent() to fallback-create a SubscriptionContract from PendingSubscription (and link the original on-store invoice) when no contract is found, then delete the pending record.
Done in src/services/subscripiton.service.js.
Added correct route alias:
Added router.use("/api/v1/subscription", subscripitionRoute); (kept old typo route for backward compatibility).
Done in src/routes/nursery/index.js.

Actions #4

Updated by Anonymous 8 days ago

  • % Done changed from 90 to 100
  • Estimated time changed from 2:00 h to 3:00 h

Updated by Ajit A 8 days ago

  • Status changed from In Progress to Resolved

Completed

Updated by Sai Mahananda 7 days ago

  • Status changed from Resolved to Re-Open

i create requet , qoute and paid the amount its adding doule amount to invoice piad amount and sales in dahsboard please cheack once

Updated by Ajit A 6 days ago

  • Estimated time changed from 3:00 h to 4:00 h

Re-open to fix the sale amount doublng

Actions #8

Updated by Sai Mahananda 6 days ago

  • Assignee changed from Ajit A to Teja Sriram Sangani
Edit Copy Actions

Also available in: Atom PDF