Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

timeout of 20000ms exceeded #11

Open
bfgelectronics opened this issue Mar 6, 2024 · 0 comments
Open

timeout of 20000ms exceeded #11

bfgelectronics opened this issue Mar 6, 2024 · 0 comments

Comments

@bfgelectronics
Copy link

It seems that the createPayment method errors every time witht the message timeout of 20000ms exceeded .

The API key that i use to initialise the PI object is valid (as i use it for user-to-app transactions) and secret phrase should be fine.

const paymentId = await pi.createPayment({ amount: adjustedAmount, uid: userId, memo: "Payment", metadata, });

adjustedAmount is a number , userId is the id of the user that i get from the client pi sdk , and metadata contains some small info about the payment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant