From ba5a0ff67ae20d2dbc312eea42719ed1de8e3b60 Mon Sep 17 00:00:00 2001 From: Andrei Dekterev Date: Tue, 14 Jun 2022 20:06:05 +0700 Subject: [PATCH] fix(#2483): fix link for thanks page --- src/requests/getBrazilPaymentUrl.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/requests/getBrazilPaymentUrl.tsx b/src/requests/getBrazilPaymentUrl.tsx index 50fb15ab..0b937c6c 100644 --- a/src/requests/getBrazilPaymentUrl.tsx +++ b/src/requests/getBrazilPaymentUrl.tsx @@ -1,5 +1,4 @@ import { API_ROOT, PAGES } from 'config' -import { getClientNameByRedirectUri } from 'features/AuthStore/helpers' import { callApi } from 'helpers' @@ -16,7 +15,7 @@ export const getBrazilPaymentUrl = async ({ item, product_name }: Props) => { action: 'create_subscription', data: { item: { ...item, product_name }, - url_return: `https://${getClientNameByRedirectUri()}.tv${PAGES.thanksForSubscribe}}`, + url_return: `${window.location.origin}${PAGES.thanksForSubscribe}`, }, service: 'pag_brasil', },