Skip to content

Commit

Permalink
fix: zerofill value for exp_month
Browse files Browse the repository at this point in the history
  • Loading branch information
darkoatanasovski committed Dec 14, 2022
1 parent 6bf5434 commit 36b71b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/inplayer.subscription.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export const getSubscriptions = async () => {

const processCardDetails = (card: Card & { card_type: string; account_id: number }): PaymentDetail => {
const { number, exp_month, exp_year, card_name, card_type, account_id } = card;
const zeroFillExpMonth = `0${exp_month}`.substring(-2);
const zeroFillExpMonth = `0${exp_month}`.slice(-2);
return {
customerId: account_id.toString(),
paymentMethodSpecificParams: {
Expand Down

0 comments on commit 36b71b5

Please sign in to comment.