--
This commit is contained in:
parent
ce2582569b
commit
e94eea6d3f
@ -34,8 +34,9 @@ export const sendPayment = async ({
|
|||||||
additionalinformation?: string;
|
additionalinformation?: string;
|
||||||
}): Promise<[SendPaymentResponse | null, string?]> => {
|
}): Promise<[SendPaymentResponse | null, string?]> => {
|
||||||
|
|
||||||
|
|
||||||
// Правильно формируем returnUrl
|
// Правильно формируем returnUrl
|
||||||
const domain = fromDomain || 'localhost:3000';
|
const domain = fromDomain || `${isStaging ? "s" : ""}hub.pena.digital`;
|
||||||
const path = backWay ? `/${backWay}` : '';
|
const path = backWay ? `/${backWay}` : '';
|
||||||
let returnUrl = `https://${domain}${path}?userid=${userId}&action=${action || 'buy'}`;
|
let returnUrl = `https://${domain}${path}?userid=${userId}&action=${action || 'buy'}`;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user