Skip to content

Commit

Permalink
Merge pull request #591 from stiftelsen-effekt/590-change-conflicting…
Browse files Browse the repository at this point in the history
…-swish-payment-method-id

Change conflicting swish payment method
  • Loading branch information
fellmirr authored Aug 9, 2023
2 parents e898bb7 + c7caa16 commit 7961527
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
9 changes: 9 additions & 0 deletions prisma/fakedata/json/fakePayments.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,14 @@
"flat_fee": 0,
"percentage_fee": 0,
"lastUpdated": "2022-12-18T16:59:41.000Z"
},
{
"ID": 11,
"payment_name": "Swish",
"abbriv": "Swish",
"short_desc": "",
"flat_fee": 0,
"percentage_fee": 0,
"lastUpdated": "2022-12-18T17:00:01.000Z"
}
]
12 changes: 7 additions & 5 deletions src/enums/methods.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import paymentMethods from "./paymentMethods";

export default {
VIPPS: 6,
BANK: 2,
PAYPAL: 3,
AVTALEGIRO: 7,
SWISH: 10,
VIPPS: paymentMethods.vipps,
BANK: paymentMethods.bank,
PAYPAL: paymentMethods.paypal,
AVTALEGIRO: paymentMethods.avtalegiro,
SWISH: paymentMethods.swish,
};
4 changes: 2 additions & 2 deletions src/enums/paymentMethods.js → src/enums/paymentMethods.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
export default {
bank: 2,
bank_no_KID: 5,
vipps_KID: 4,
Expand All @@ -7,5 +7,5 @@ module.exports = {
avtalegiro: 7,
vipps_recurring: 8,
facebook: 9,
swish: 10,
swish: 11,
};

0 comments on commit 7961527

Please sign in to comment.