From 696a218b0e8edc07eefaef96661809ab190042c0 Mon Sep 17 00:00:00 2001 From: PavelBrm Date: Fri, 2 Feb 2024 19:40:16 +1300 Subject: [PATCH] fix: do not allow stripe on mobile orders for Leo --- services/skus/skus.go | 1 - services/skus/skus_test.go | 3 --- 2 files changed, 4 deletions(-) diff --git a/services/skus/skus.go b/services/skus/skus.go index bf8bb9a6b..86f679ac3 100644 --- a/services/skus/skus.go +++ b/services/skus/skus.go @@ -162,7 +162,6 @@ func newCreateOrderReqNewLeo(ppcfg *premiumPaymentProcConfig, item model.OrderIt SuccessURI: ppcfg.successURI, CancelURI: ppcfg.cancelURI, }, - PaymentMethods: []string{"stripe"}, Items: []model.OrderItemRequestNew{item}, } diff --git a/services/skus/skus_test.go b/services/skus/skus_test.go index 0289b3f9b..c1eb3692f 100644 --- a/services/skus/skus_test.go +++ b/services/skus/skus_test.go @@ -277,7 +277,6 @@ func TestNewCreateOrderReqNewLeo(t *testing.T) { SuccessURI: "https://account.brave.software/account/?intent=provision", CancelURI: "https://account.brave.software/plans/?intent=checkout", }, - PaymentMethods: []string{"stripe"}, Items: []model.OrderItemRequestNew{ { @@ -313,7 +312,6 @@ func TestNewCreateOrderReqNewLeo(t *testing.T) { SuccessURI: "https://account.bravesoftware.com/account/?intent=provision", CancelURI: "https://account.bravesoftware.com/plans/?intent=checkout", }, - PaymentMethods: []string{"stripe"}, Items: []model.OrderItemRequestNew{ { @@ -349,7 +347,6 @@ func TestNewCreateOrderReqNewLeo(t *testing.T) { SuccessURI: "https://account.brave.com/account/?intent=provision", CancelURI: "https://account.brave.com/plans/?intent=checkout", }, - PaymentMethods: []string{"stripe"}, Items: []model.OrderItemRequestNew{ {