Skip to content
Open
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions public/icons/orca.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/LocaleStrings/ArabicLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -251,4 +251,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
giftCardPaymentCompleteMessage: `لا يوجد مبلغ متبقٍ للدفع. يرجى المتابعة لإتمام عملية الدفع.`,
giftCardPaymentRemainingMessage: (currency, amount) =>
`يرجى دفع المبلغ المتبقي ${amount} ${currency} باستخدام وسيلة دفع أخرى أدناه.`,
payment_methods_qris: `QRIS`,
}
1 change: 1 addition & 0 deletions src/LocaleStrings/CatalanLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -250,4 +250,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
giftCardPaymentCompleteMessage: `No queda cap import pendent de pagament. Si us plau, continueu amb el pagament.`,
giftCardPaymentRemainingMessage: (currency, amount) =>
`Pagueu l'import restant de ${currency} ${amount} amb un altre mètode de pagament a continuació.`,
payment_methods_qris: `QRIS`,
}
1 change: 1 addition & 0 deletions src/LocaleStrings/ChineseLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -248,4 +248,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
giftCardPaymentCompleteMessage: `无需支付剩余金额。请继续完成付款。`,
giftCardPaymentRemainingMessage: (currency, amount) =>
`请使用下方的其他支付方式支付剩余金额 ${currency}${amount}。`,
payment_methods_qris: `QRIS`,
}
1 change: 1 addition & 0 deletions src/LocaleStrings/DeutschLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -249,4 +249,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
giftCardPaymentCompleteMessage: `Es ist kein Restbetrag zu zahlen. Bitte fahren Sie mit der Zahlung fort.`,
giftCardPaymentRemainingMessage: (currency, amount) =>
`Bitte zahlen Sie den verbleibenden Betrag von ${amount} ${currency} mit einer anderen Zahlungsmethode unten.`,
payment_methods_qris: `QRIS`,
}
1 change: 1 addition & 0 deletions src/LocaleStrings/DutchLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -248,4 +248,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
giftCardPaymentCompleteMessage: `Er staat geen resterend bedrag open. Ga verder met de betaling.`,
giftCardPaymentRemainingMessage: (currency, amount) =>
`Betaal het resterende bedrag van ${amount} ${currency} met een andere betaalmethode hieronder.`,
payment_methods_qris: `QRIS`,
}
1 change: 1 addition & 0 deletions src/LocaleStrings/EnglishGBLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -248,4 +248,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
giftCardPaymentCompleteMessage: `There is no remaining amount to pay. Please proceed with the payment.`,
giftCardPaymentRemainingMessage: (currency, amount) =>
`Please pay the remaining ${currency} ${amount} using another payment method below.`,
payment_methods_qris: `QRIS`,
}
1 change: 1 addition & 0 deletions src/LocaleStrings/EnglishLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -248,4 +248,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
giftCardPaymentCompleteMessage: `No remaining amount to pay. Please proceed with payment.`,
giftCardPaymentRemainingMessage: (currency, amount) =>
`Pay remaining ${currency} ${amount} with other payment method below.`,
payment_methods_qris: `QRIS`,
}
1 change: 1 addition & 0 deletions src/LocaleStrings/FrenchBelgiumLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -250,4 +250,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
giftCardPaymentCompleteMessage: `Aucun montant restant à payer. Veuillez poursuivre le paiement.`,
giftCardPaymentRemainingMessage: (currency, amount) =>
`Veuillez payer le montant restant de ${amount} ${currency} avec un autre moyen de paiement ci-dessous.`,
payment_methods_qris: `QRIS`,
}
1 change: 1 addition & 0 deletions src/LocaleStrings/FrenchLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -250,4 +250,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
giftCardPaymentCompleteMessage: `Aucun montant restant à payer. Veuillez poursuivre le paiement.`,
giftCardPaymentRemainingMessage: (currency, amount) =>
`Veuillez payer le montant restant de ${amount} ${currency} avec un autre moyen de paiement ci-dessous.`,
payment_methods_qris: `QRIS`,
}
1 change: 1 addition & 0 deletions src/LocaleStrings/HebrewLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -249,4 +249,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
giftCardPaymentCompleteMessage: `לא נותר סכום לתשלום. אנא המשיכו לביצוע התשלום.`,
giftCardPaymentRemainingMessage: (currency, amount) =>
`אנא שלמו את הסכום שנותר ${amount} ${currency} באמצעות אמצעי תשלום אחר למטה.`,
payment_methods_qris: `QRIS`,
}
1 change: 1 addition & 0 deletions src/LocaleStrings/ItalianLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -250,4 +250,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
giftCardPaymentCompleteMessage: `Non rimane alcun importo da pagare. Procedi con il pagamento.`,
giftCardPaymentRemainingMessage: (currency, amount) =>
`Paga l’importo rimanente di ${amount} ${currency} con un altro metodo di pagamento qui sotto.`,
payment_methods_qris: `QRIS`,
}
1 change: 1 addition & 0 deletions src/LocaleStrings/JapaneseLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -249,4 +249,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
giftCardPaymentCompleteMessage: `残りの支払金額はありません。支払いを続行してください。`,
giftCardPaymentRemainingMessage: (currency, amount) =>
`残りの ${amount}${currency} は、以下の別の支払い方法でお支払いください。`,
payment_methods_qris: `QRIS`,
}
1 change: 1 addition & 0 deletions src/LocaleStrings/LocaleStringTypes.res
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ type localeStrings = {
giftCardAppliedText: string,
giftCardPaymentCompleteMessage: string,
giftCardPaymentRemainingMessage: (string, string) => string,
payment_methods_qris: string,
}

type constantStrings = {
Expand Down
1 change: 1 addition & 0 deletions src/LocaleStrings/PolishLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -249,4 +249,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
giftCardPaymentCompleteMessage: `Nie pozostała żadna kwota do zapłaty. Proszę kontynuować płatność.`,
giftCardPaymentRemainingMessage: (currency, amount) =>
`Proszę zapłacić pozostałą kwotę ${amount} ${currency} inną metodą płatności poniżej.`,
payment_methods_qris: `QRIS`,
}
1 change: 1 addition & 0 deletions src/LocaleStrings/PortugueseLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -249,4 +249,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
giftCardPaymentCompleteMessage: `Não há valor restante a pagar. Por favor, prossiga com o pagamento.`,
giftCardPaymentRemainingMessage: (currency, amount) =>
`Por favor, pague o valor restante de ${amount} ${currency} com outro método de pagamento abaixo.`,
payment_methods_qris: `QRIS`,
}
1 change: 1 addition & 0 deletions src/LocaleStrings/RussianLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -257,4 +257,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
giftCardPaymentCompleteMessage: `Оставшаяся сумма к оплате отсутствует. Пожалуйста, продолжите оплату.`,
giftCardPaymentRemainingMessage: (currency, amount) =>
`Пожалуйста, оплатите оставшуюся сумму ${amount} ${currency} другим способом оплаты ниже.`,
payment_methods_qris: `QRIS`,
}
1 change: 1 addition & 0 deletions src/LocaleStrings/SpanishLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -249,4 +249,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
giftCardPaymentCompleteMessage: `No queda importe restante por pagar. Por favor, proceda con el pago.`,
giftCardPaymentRemainingMessage: (currency, amount) =>
`Pague los ${currency} ${amount} restantes con otro método de pago a continuación.`,
payment_methods_qris: `QRIS`,
}
1 change: 1 addition & 0 deletions src/LocaleStrings/SwedishLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -248,4 +248,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
giftCardPaymentCompleteMessage: `Ingen kvarvarande summa att betala. Vänligen fortsätt med betalningen.`,
giftCardPaymentRemainingMessage: (currency, amount) =>
`Vänligen betala den kvarvarande summan ${amount} ${currency} med en annan betalningsmetod nedan.`,
payment_methods_qris: `QRIS`,
}
1 change: 1 addition & 0 deletions src/LocaleStrings/TraditionalChineseLocale.res
Original file line number Diff line number Diff line change
Expand Up @@ -248,4 +248,5 @@ let localeStrings: LocaleStringTypes.localeStrings = {
giftCardPaymentCompleteMessage: `無需支付剩餘金額。請繼續完成付款。`,
giftCardPaymentRemainingMessage: (currency, amount) =>
`請使用下方的其他付款方式支付剩餘金額 ${currency}${amount}。`,
payment_methods_qris: `QRIS`,
}
7 changes: 7 additions & 0 deletions src/Payments/PaymentMethodsRecord.res
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,13 @@ let getPaymentMethodsFields = (~localeString: LocaleStringTypes.localeStrings) =
fields: [InfoElement],
miniIcon: Some(icon("bank", ~size=19)),
},
{
paymentMethodName: "qris",
icon: Some(icon("qris", ~size=19, ~width=40)),
displayName: localeString.payment_methods_qris,
fields: [InfoElement],
miniIcon: None,
},
]

type required_fields = {
Expand Down
3 changes: 3 additions & 0 deletions src/Types/PaymentModeType.res
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ type payment =
| PayPal
| EFT
| Givex
| QRIS
| Unknown

let paymentMode = str => {
Expand Down Expand Up @@ -59,6 +60,7 @@ let paymentMode = str => {
| "paypal" => PayPal
| "eft" => EFT
| "givex" => Givex
| "qris" => QRIS
| _ => Unknown
}
}
Expand Down Expand Up @@ -92,4 +94,5 @@ let defaultOrder = [
"eft",
"revolut_pay",
"givex",
"qris",
]
1 change: 1 addition & 0 deletions src/Utilities/DynamicFieldsUtils.res
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ let dynamicFieldsEnabledPaymentMethods = [
"interac",
"open_banking",
"givex",
"qris",
]

let getAtomBasedOnSplitPayments = (isSplitPaymentsEnabled, splitAtom, normalAtom) =>
Expand Down
Loading