-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
Hi there,
We are still getting the following error:
AxiosError: Request failed with status code 401
when we try to create an A2U payment.
Here is our code:
const pi = new PiNetwork.default(PI_API_KEY, PI_WALLET_PRIVATE_SEED);
const paymentData = {
amount: 2,
memo: 'Withdraw',
uid: '...uid',
metadata: { u: 0 }
};
await pi.createPayment(paymentData);
The function below is working without any errors:
const pi = new PiNetwork.default(PI_API_KEY, PI_WALLET_PRIVATE_SEED);
const incompletePayments = await pi.getIncompleteServerPayments();
Any help would be appreciated!
Metadata
Metadata
Assignees
Labels
No labels