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.
It seems that the
createPaymentmethod errors every time witht the messagetimeout 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.