You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| WALLET_NOT_CONNECTED | Wallet | A wallet/principal is required but not connected (e.g., before calling `sendFunds`). | Ask the user to connect their wallet; provide an `actorProvider` and `connectedWallet`.
30
+
| WALLET_NOT_CONNECTED | Wallet | A wallet/principal is required but not connected (e.g., before calling `createPayment`). | Ask the user to connect their wallet; provide an `actorProvider` and `connectedWallet`.
31
31
| WALLET_CONNECTION_FAILED | Wallet | Failed to connect to the selected wallet provider. | Offer retry or let the user pick another provider.
32
32
| WALLET_DISCONNECTED | Wallet | Wallet was disconnected mid-flow. | Reconnect and restart the action.
33
33
| WALLET_SIGNATURE_REJECTED | Wallet | User rejected the signature prompt. | Treat as user cancel; allow retry.
Copy file name to clipboardExpand all lines: src/app/page.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ Use the ICPay SDK to accept payments from users' wallets and manage your account
32
32
33
33
The ICPay SDK ships as a single package that supports two usage modes. Use the public SDK on the frontend with your Publishable Key; use the private SDK on the server with your Secret Key. {{ className: 'lead' }}
34
34
35
-
**Public SDK (frontend)**: Initialize with `publishableKey` for typical tasks like getting verified ledgers, resolving canister IDs, price calculation, and initiating payments from the user's wallet via `sendFunds`/`sendFundsUsd`.
35
+
**Public SDK (frontend)**: Initialize with `publishableKey` for typical tasks like getting verified ledgers, resolving canister IDs, price calculation, and initiating payments from the user's wallet via `createPayment`/`createPaymentUsd`.
36
36
37
37
**Private SDK (server)**: Initialize with `secretKey` for account details, payment history, transactions, ledgers with prices for your account, webhook event lookups, and other server-side operations.
Copy file name to clipboardExpand all lines: src/app/sdk-overview/page.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ The ICPay SDK ships as a single package that supports two usage modes. Use the p
24
24
## Public SDK (frontend)
25
25
26
26
- Initialize with `publishableKey`.
27
-
- Typical tasks: get verified ledgers, resolve canister IDs, price calculation, and initiate payments from the user’s wallet via `sendFunds`/`sendFundsUsd` (requires wallet + actor provider).
27
+
- Typical tasks: get verified ledgers, resolve canister IDs, price calculation, and initiate payments from the user’s wallet via `createPayment`/`createPaymentUsd` (requires wallet + actor provider).
Copy file name to clipboardExpand all lines: src/app/sdk/page.mdx
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ Create an account in the [icpay.org dashboard](/icpay-org) to obtain your Publis
31
31
32
32
## Quickstart
33
33
34
-
Initialize the SDK with your publishable key on the client. Only when using `sendFunds` or `sendFundsUsd`, you must provide an `actorProvider` and a connected wallet.
34
+
Initialize the SDK with your publishable key on the client. Only when using `createPayment` or `createPaymentUsd`, you must provide an `actorProvider` and a connected wallet.
0 commit comments