fix(payment): show selector only for Philippines

This commit is contained in:
2026-07-20 16:23:18 +08:00
parent 9920f97029
commit f44db8d8b2
5 changed files with 54 additions and 7 deletions
@@ -10,6 +10,7 @@ describe("PaymentMethodSelector", () => {
config={{
canChoosePaymentMethod: true,
initialPayChannel: "ezpay",
showPaymentMethodSelector: true,
}}
value="ezpay"
caption="GCash by default"
@@ -46,6 +47,7 @@ describe("PaymentMethodSelector", () => {
config={{
canChoosePaymentMethod: true,
initialPayChannel: "stripe",
showPaymentMethodSelector: true,
}}
value="stripe"
disabled
@@ -64,8 +66,9 @@ describe("PaymentMethodSelector", () => {
const html = renderToStaticMarkup(
<PaymentMethodSelector
config={{
canChoosePaymentMethod: false,
canChoosePaymentMethod: true,
initialPayChannel: "stripe",
showPaymentMethodSelector: false,
}}
value="stripe"
analyticsKey="tip.payment_method"