#satvik-techie_code

1 messages · Page 1 of 1 (latest)

wary fjordBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1297800618886303810

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

golden fern
#

hi there

icy topaz
#

I don’t see invoice_hosted_url anywhere in your code

golden fern
#

let me share with you

#

hosted-invoice-page-21b0153182b5b6e2698c43296af10ae7.js:1 Uncaught (in promise) UnexpectedError: Expired API Key provided: ek_test_YW*********************************************************************_******Vmdp. Platform access may have been revoked.
at hosted-invoice-page-21b0153182b5b6e2698c43296af10ae7.js:1:2362191

#

getting above error

#

when i receive a invoice.payment_failed event ( webhook ) in my api i am getting invoice_payment_url in invoice object , then i take that url to share with my customer to proceed with payment, but my customer unable to make payment with that url .

icy topaz
#

What’s the event id?

golden fern
#

evt_1QCDG3DrLkxfYeQVqc0yN9jX

#

any guess ?

icy topaz
#

Let me take a look

golden fern
#

okay thanks

icy topaz
#

Ok, looks like the platform that created this subscription was already disconnected from this connected account.

golden fern
#

but how come that possbile ?

#

i have not done any changes after creating a subscription

#

if i create a payment link on that price, would that be a case ?

#

StripeConfiguration.ApiKey = paymentConfiguration.ApiKey;
var requestOptions = new RequestOptions
{
StripeAccount = paymentConfiguration.AccountKey
};
var options = new PaymentLinkCreateOptions
{
LineItems = new List<PaymentLinkLineItemOptions>
{
new PaymentLinkLineItemOptions
{
Price = priceId,
Quantity = 1,
},
},
};
var service = new PaymentLinkService();
var paymentLink = await service.CreateAsync(options, requestOptions);

return paymentLink.Url
#

the priceid is taken from invoice object

icy topaz
#

Hmm, but still even if the platform is disconnected, the invoice URL should still work.

#

This is going to require a bit more investigation. Sorry to redirect you, but can you write in to https://support.stripe.com/contact/email with the information that you provided. We'll respond via email/ticket after looking into it further.