In wrapper Frames.submitCard() does not return a Promise like in the vanilla Checkout.com frames library
ivotripunovic opened this issue · 0 comments
ivotripunovic commented
Hi Checkout,
while using react wrapper for the library I was not able to use return value of Frames.submitCard() so I could reuse card token string from the response, as documented in frames reference
Is there another way to do it with react wrapper or is it a bug?
I was looking at the code of Frames.tsx and on line 128 i guess the easiest fix would be to just
static submitCard = () => {
return window.Frames.submitCard();
};
instead of not returning anything
Thank you,
Ivo