2
0

fix(editor): 🐛 Custom currency payment input

This commit is contained in:
Baptiste Arnaud
2022-05-27 09:55:51 -07:00
parent 30d36b9a09
commit 2cb8330790
7 changed files with 39 additions and 33 deletions

View File

@ -74,7 +74,9 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
isPreview && stripeKeys.test?.publicKey
? stripeKeys.test.publicKey
: stripeKeys.live.publicKey,
amountLabel: `${amount / 100}${currencySymbols[inputOptions.currency]}`,
amountLabel: `${amount / 100}${
currencySymbols[inputOptions.currency] ?? inputOptions.currency
}`,
})
}
return methodNotAllowed(res)