|
|
|
@ -24,7 +24,7 @@ type ResponsePayment = { |
|
|
|
url: string, |
|
|
|
url: string, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
type ResponsePaymentArray =Array<ResponsePayment | null> |
|
|
|
type ResponsePaymentArray = ResponsePayment | null |
|
|
|
|
|
|
|
|
|
|
|
export const BrazilPayment = ({ |
|
|
|
export const BrazilPayment = ({ |
|
|
|
open, |
|
|
|
open, |
|
|
|
@ -51,7 +51,7 @@ export const BrazilPayment = ({ |
|
|
|
if (open) { |
|
|
|
if (open) { |
|
|
|
(async () => { |
|
|
|
(async () => { |
|
|
|
const json: ResponsePaymentArray = await getBrazilPaymentUrl({ item: originalObject, product_name: `${pack} ${teams}` }) |
|
|
|
const json: ResponsePaymentArray = await getBrazilPaymentUrl({ item: originalObject, product_name: `${pack} ${teams}` }) |
|
|
|
setSrc(json[0]?.url || '') |
|
|
|
setSrc(json?.url || '') |
|
|
|
})() |
|
|
|
})() |
|
|
|
} |
|
|
|
} |
|
|
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
|
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
|
|
|