We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4104808 commit c30f400Copy full SHA for c30f400
1 file changed
test/test.ts
@@ -553,13 +553,13 @@ describe(c.blue('[TEST] api management'), () => {
553
assert.equal(res.statusCode, 200);
554
const stripe = new Stripe(STRIPE_SECRET);
555
556
- await stripe.invoiceItems.create({
+ const invoice = await stripe.invoices.create({
557
customer: this.previousCustomer,
558
- price: 'price_1Lm1siCHN72mG1oKkk3Jh1JT', // test $123 one time
559
});
560
-
561
- const invoice = await stripe.invoices.create({
+ await stripe.invoiceItems.create({
562
+ price: 'price_1Lm1siCHN72mG1oKkk3Jh1JT', // test $123 one time
+ invoice: invoice.id,
563
564
565
await stripe.invoices.finalizeInvoice(invoice.id);
0 commit comments