diff --git a/src/pages/sdk/typescript/client/Method.tempo.mdx b/src/pages/sdk/typescript/client/Method.tempo.mdx index cd6bd57b..e6737d78 100644 --- a/src/pages/sdk/typescript/client/Method.tempo.mdx +++ b/src/pages/sdk/typescript/client/Method.tempo.mdx @@ -6,11 +6,11 @@ imageDescription: "Handle Tempo payments in TypeScript clients" import { Tab, Tabs } from 'vocs' -# `tempo.common` [Register default Tempo intents] +# `tempo` [Register default Tempo intents] -Explicit alias that creates both `tempo.charge` and Sessions method intents with shared configuration. +Preferred convenience function that creates both `tempo.charge` and Sessions method intents with shared configuration. -Use `tempo.common()` when a client should handle both one-time payments and Sessions through the same fetch wrapper. The older `tempo()` callable form remains available for compatibility, but `tempo.common()` makes it clear that this helper registers the common bundle, not every Tempo intent. +Use `tempo(...)` by default. Use `tempo.common(...)` only when you want to make the shared charge and Sessions behavior explicit; it is an alias for `tempo(...)`. Register [`tempo.subscription`](/sdk/typescript/client/Method.tempo.subscription) separately for recurring payments. @@ -35,7 +35,7 @@ await provider.request({ method: 'wallet_connect' }) Mppx.create({ methods: [ // [!code focus:start] - tempo.common({ + tempo({ account: provider.getAccount({ signable: true }), getClient: provider.getClient, }), @@ -56,7 +56,7 @@ const account = privateKeyToAccount('0x0123456789abcdef0123456789abcdef012345678 Mppx.create({ methods: [ // [!code focus:start] - tempo.common({ account }), + tempo({ account }), // [!code focus:end] ], }) diff --git a/src/pages/sdk/typescript/server/Method.tempo.mdx b/src/pages/sdk/typescript/server/Method.tempo.mdx index f7dc9997..0ac195af 100644 --- a/src/pages/sdk/typescript/server/Method.tempo.mdx +++ b/src/pages/sdk/typescript/server/Method.tempo.mdx @@ -4,11 +4,11 @@ description: "Register Tempo charge and session support in an MPP TypeScript ser imageDescription: "Accept Tempo payments in TypeScript servers" --- -# `tempo.common` [Register default Tempo intents] +# `tempo` [Register default Tempo intents] -Explicit alias that creates both `tempo.charge` and Sessions method intents with shared configuration. +Preferred convenience function that creates both `tempo.charge` and Sessions method intents with shared configuration. -Use `tempo.common()` when a server should accept both one-time payments and Sessions from the same shared Tempo configuration. The older `tempo()` callable form remains available for compatibility, but `tempo.common()` makes it clear that this helper registers the common bundle, not every Tempo intent. +Use `tempo(...)` by default. Use `tempo.common(...)` only when you want to make the shared charge and Sessions behavior explicit; it is an alias for `tempo(...)`. Register [`tempo.subscription`](/sdk/typescript/server/Method.tempo.subscription) separately for recurring payments. @@ -27,7 +27,7 @@ const account = privateKeyToAccount('0x0123456789abcdef0123456789abcdef012345678 Mppx.create({ methods: [ // [!code focus:start] - tempo.common({ + tempo({ account, chainId: 4217, currency: '0x20c0000000000000000000000000000000000000', // pathUSD on Tempo