|
|
|
@ -1,5 +1,4 @@ |
|
|
|
import { API_ROOT, PAGES } from 'config' |
|
|
|
import { API_ROOT, PAGES } from 'config' |
|
|
|
import { getClientNameByRedirectUri } from 'features/AuthStore/helpers' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import { callApi } from 'helpers' |
|
|
|
import { callApi } from 'helpers' |
|
|
|
|
|
|
|
|
|
|
|
@ -16,7 +15,7 @@ export const getBrazilPaymentUrl = async ({ item, product_name }: Props) => { |
|
|
|
action: 'create_subscription', |
|
|
|
action: 'create_subscription', |
|
|
|
data: { |
|
|
|
data: { |
|
|
|
item: { ...item, product_name }, |
|
|
|
item: { ...item, product_name }, |
|
|
|
url_return: `https://${getClientNameByRedirectUri()}.tv${PAGES.thanksForSubscribe}}`, |
|
|
|
url_return: `${window.location.origin}${PAGES.thanksForSubscribe}`, |
|
|
|
}, |
|
|
|
}, |
|
|
|
service: 'pag_brasil', |
|
|
|
service: 'pag_brasil', |
|
|
|
}, |
|
|
|
}, |
|
|
|
|