feat(SW-3642): Enable SAS EB payments * Wip add SAS eb payment * Add validate payment call * Check booking status payment method to determine validation * Clean up getPaymentData * Fix PartnerPoints casing * Add comment for validatePartnerPayment error handling * Remove comment Approved-by: Joakim Jäderberg
51 lines
1.1 KiB
TypeScript
51 lines
1.1 KiB
TypeScript
// TODO move to better location?
|
|
|
|
export enum PaymentMethodEnum {
|
|
card = "card",
|
|
swish = "swish",
|
|
vipps = "vipps",
|
|
mobilePay = "mobilePay",
|
|
applePay = "applePay",
|
|
googlePay = "googlePay",
|
|
alipayPlus = "alipayPlus",
|
|
weChatPay = "weChatPay",
|
|
payPal = "payPal",
|
|
klarna = "klarna",
|
|
americanExpress = "americanExpress",
|
|
dankort = "dankort",
|
|
dinersClub = "dinersClub",
|
|
jcb = "jcb",
|
|
masterCard = "masterCard",
|
|
visa = "visa",
|
|
maestro = "maestro",
|
|
chinaUnionPay = "chinaUnionPay",
|
|
discover = "discover",
|
|
PartnerPoints = "PartnerPoints",
|
|
}
|
|
|
|
export const PAYMENT_METHOD_TITLES: Record<
|
|
keyof typeof PaymentMethodEnum,
|
|
string
|
|
> = {
|
|
card: "Credit card",
|
|
swish: "Swish",
|
|
vipps: "Vipps",
|
|
mobilePay: "MobilePay",
|
|
applePay: "Apple Pay",
|
|
googlePay: "Google Pay",
|
|
alipayPlus: "Alipay+",
|
|
weChatPay: "WeChat Pay",
|
|
payPal: "PayPal",
|
|
klarna: "Klarna",
|
|
americanExpress: "American Express",
|
|
dankort: "Dankort",
|
|
dinersClub: "Diners Club",
|
|
jcb: "JCB",
|
|
masterCard: "Mastercard",
|
|
visa: "Visa",
|
|
maestro: "Maestro",
|
|
chinaUnionPay: "China UnionPay",
|
|
discover: "Discover",
|
|
PartnerPoints: "N/A",
|
|
}
|