- What is your product version? - v9.0.1.0
- What is your product type (Angular or MVC)? - MVC & jQuery
- What is product framework type (.net framework or .net core)? - .NET Core 3.1
In the process of extending "Stripe" payment system i figured out that when trying to change(upgrade) subscription i am getting error "LastPayment was null". I will be very happy if you help me solve this problem.
10 Answer(s)
-
0
Hi @Garrett
Is this happening when a Tenant is upgrading from a Free edition to a paid edition ?
Thanks,
-
0
Hello
This happens when trying to upgrade from lets say "Pro" to "Enterprise". And also i have integrated the new customer portal that "Stripe" released 2-3 months ago and when i make new WebHook for (customer.subscription.update) it gives the same error because it doesnt create the SubscriptionPayment any suggestion how can i integrate this customer portal easily ?
-
0
Hi,
Normally when a tenant purchases an Edition, a payment record must be saved to database. Is this Tenant moved to Pro ediiton on the admin website ?
-
0
Hello, I have switched the "await _subscriptionPaymentRepository.GetLastCompletedPaymentOrDefaultAsync" to "await _subscriptionPaymentRepository.GetLastPaymentOrDefaultAsync" and there is no more error. When new tenant is registered it creates external id with the subscription ID that is created by the "Stripe" and everything works fine but when I am trying to Upgrade subscription from "Pro" to another it creates some external ID that is different from the subscription ID so the stripe service cannot find this id to make changes on the existing subscription
I am not sure that this is the proper way to do this, can you explain me in short how the stripe subscription works, do I have to make changes on the existing subscription or everytime when users manage their subscription plan should create new stripe subscription ID.
Thanks,
-
0
Hi @Garrett
but when I am trying to Upgrade subscription from "Pro" to another it creates some external ID that is different from the subscription ID
Do you do this on the Tenat list page ? I think user is not upgrading the subscription but you are using the admin panel, right ?
-
0
Hello,
I am doing this from the Tenant admin account, users don't have an option for subscription update, only tenants do.
-
0
@ismcagdas
The link you sent doesn't work.
-
0
Hi,
You need to add your GitHub user on https://aspnetzero.com/LicenseManagement. After that, you can see the link (it is a private link).
-
0
Hi @Garrett
Is it possible that someone changed the values on database manually ? Because we couldn't reproduce this problem with the latest version.