Skip to content

fix: added payment_already_exists failure reason lightning #6326

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions modules/abstract-lightning/src/codecs/api/payment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export const PAYMENT_FAILURE_INSUFFICIENT_WALLET_BALANCE = 'INSUFFICIENT_WALLET_
/** Excess custodial lightning balance for the customer's wallet */
export const PAYMENT_FAILURE_EXCESS_WALLET_BALANCE = 'EXCESS_WALLET_BALANCE';
export const PAYMENT_FAILURE_INVOICE_EXPIRED = 'INVOICE_EXPIRED';
export const PAYMENT_FAILURE_PAYMENT_ALREADY_EXISTS = 'PAYMENT_ALREADY_EXISTS';
export const PAYMENT_FAILURE_CANCELED = 'CANCELED';
export const PAYMENT_FAILURE_FORCE_FAILED = 'FORCE_FAILED';

Expand All @@ -40,6 +41,7 @@ export const PaymentFailureReason = t.union([
t.literal(PAYMENT_FAILURE_INSUFFICIENT_WALLET_BALANCE),
t.literal(PAYMENT_FAILURE_EXCESS_WALLET_BALANCE),
t.literal(PAYMENT_FAILURE_INVOICE_EXPIRED),
t.literal(PAYMENT_FAILURE_PAYMENT_ALREADY_EXISTS),
t.literal(PAYMENT_FAILURE_CANCELED),
t.literal(PAYMENT_FAILURE_FORCE_FAILED),
]);
Expand Down