From 8c9f4dca57225f0a217ddbb8247f535da37e89ab Mon Sep 17 00:00:00 2001 From: Kristijan Date: Tue, 28 Apr 2026 11:51:53 +0200 Subject: [PATCH] Version 1.2.44 - 2026-04-28 11:51:53 --- package.json | 2 +- src/app/sdk/page.mdx | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index ce39043..e6c4820 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tailwind-plus-icpay", - "version": "1.2.43", + "version": "1.2.44", "private": true, "packageManager": "pnpm@9.12.3", "scripts": { diff --git a/src/app/sdk/page.mdx b/src/app/sdk/page.mdx index ebf7e6f..fcdb132 100644 --- a/src/app/sdk/page.mdx +++ b/src/app/sdk/page.mdx @@ -286,6 +286,8 @@ const principal = icpay.getAccountAddress() - `createPayment(request)` → Token-denominated payment. - `createPaymentUsd(request)` → USD-denominated payment (auto conversion). - `createPaymentX402Usd(request)` → X402 flow with automatic fallback to regular path. + - `subscribePaymentIntentStatus({ paymentIntentId, onUpdate, onError?, intervalMs? })` → Subscribe to one payment intent via SSE. + - `waitForPaymentIntentCompletion(paymentIntentId)` → Convenience helper that waits for terminal status using SSE first, then polling fallback. - `notifyPaymentIntentOnRamp({ paymentIntentId, ... })` → Poll an onramp intent until terminal status. - `triggerTransactionSync(canisterTransactionId)` → Ask ICPay to sync a canister tx to API DB now.