#andrew.cai

1 messages · Page 1 of 1 (latest)

idle rootBOT
rapid tangle
#

Do you plan to create the Invoice using Dashboard or API?

fading citrus
#

api

rapid tangle
fading citrus
#

I already know the operation of the dashboard

#

There's an error.

#

Nothing to invoice for customer

rapid tangle
fading citrus
#

req_bDpEi1qIN3nhUL

rapid tangle
#

I see that you're using API version 2020-08-27 when creating an invoice in https://dashboard.stripe.com/test/logs/req_bDpEi1qIN3nhUL. In API version 2020-08-27, the invoice item has be added to the customer first, then create the invoice.

I'd recommend upgrading your API version to latest 2022-11-15, so that you can create the empty invoice first, then add invoice item to it.

fading citrus
#

will the upgrade affect the interfaces I have previously docked

#

like Subscription、 Payment method

rapid tangle
#

It will not affect the Subscription or Payment Method created. It will only affect the API behaviour

fading citrus
#

My side is to subscribe through the API

#

😥

rapid tangle
#

I'd recommend testing out the new API version with Stripe-Version header in your code in test mode if there's any impact to your current changes

#

If the behaviour remains the same, then upgrading to new version will work fine

fading citrus
#

Ok, I'll try it first, and ask you if I have any questions

rapid tangle
#

Sure, no problem!

fading citrus
#

hello

#

Are you still there

#

How to upgrade in the code

rapid tangle
#

You can add //@ts-ignore to bypass typescript check

fading citrus
#

😥 ok

#

What is the charge

#

req_f4dWwCSIFUb3Qk

#

Here is another error

#

Also help me to see

#

The error I encountered when creating the payment method.

rapid tangle
fading citrus
#

Does it mean to repeat the request?

rapid tangle
#

Yup! Your frontend submitted the requests multiple times

fading citrus
#

ok i got it