Skip to content

Commit

Permalink
feat(provider): update description of invoice
Browse files Browse the repository at this point in the history
update description of invoice

gh-0
  • Loading branch information
Tyagi-Sunny committed Oct 30, 2024
1 parent a2c1eb9 commit fc79c23
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/providers/sdk/stripe/stripe.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,11 @@ export class StripeService implements IStripeService {
): Promise<IStripeInvoice> {
try {
if (transaction.paymentMethod !== 'payment_source') {
await this.stripe.invoices.update(invoiceId, {
metadata: {
paymentInfo: transaction.comment ?? 'Paid via bank transfer',
},
});
const invoiceResp = await this.stripe.invoices.pay(invoiceId, {
paid_out_of_band: true,
});
Expand Down

0 comments on commit fc79c23

Please sign in to comment.