fix(#2483): fix link for thanks page

keep-around/be898469f9f71883b0e0cce8a4d675d375c4cef2
Andrei Dekterev 4 years ago
parent c6bb25e283
commit ba5a0ff67a
  1. 3
      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',
},

Loading…
Cancel
Save