Closed PaulSonOfLars closed 1 year ago
User error. Misread the type definition and missed the extends...
. My bad, thank you anyway :)
FR stands though - would be great to be able to pass in the eventCallback method at the checkout.open stage!
Hi @PaulSonOfLars, Glad that you were able to find the problem.
FR stands though - would be great to be able to pass in the eventCallback method at the checkout.open stage!
This is a good feedback. We will discuss within the team and see what we can do about this.
Thank you.
What happened?
I am currently trying to setup callback queries for my checkout process. According to the docs, this apparently cannot be done at the
checkout.open()
stage. Instead, it should be set at thepaddle.setup
stage, by setting the eventCallback field.(Sidenote: I would love it if it were possible to set up the callback when opening the checkout; would allow for passing additional contextual data!)
However, the
PaddleSetupOptions
type exposed by the typescript wrapper only allows for passing in the following three values, omitting any default settings:Is this intended? Thanks in advance!
Steps to reproduce
N/A
What did you expect to happen?
Expected the initializePaddle and Paddle.Setup methods to support passing in settings for callback queries.
How are you integrating?
React
Logs