Skip to content

Commit

Permalink
Add the paymentMethodType credit
Browse files Browse the repository at this point in the history
  • Loading branch information
cyprain-okeke committed Jan 17, 2025
1 parent f191c47 commit 88ad224
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,10 @@ export class PaymentV2Component implements OnInit, OnDestroy {
}

if (this.usingAccountCredit) {
throw "Invalid payment method";
return {
type: PaymentMethodType.Credit,
token: null,
};
}

return null;
Expand Down

0 comments on commit 88ad224

Please sign in to comment.