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', },