@agent-score/commerce 2.6.0 → 2.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/core.js +1 -1
- package/dist/core.mjs +1 -1
- package/dist/identity/express.js +1 -1
- package/dist/identity/express.mjs +1 -1
- package/dist/identity/fastify.js +1 -1
- package/dist/identity/fastify.mjs +1 -1
- package/dist/identity/hono.js +1 -1
- package/dist/identity/hono.mjs +1 -1
- package/dist/identity/nextjs.js +1 -1
- package/dist/identity/nextjs.mjs +1 -1
- package/dist/identity/web.js +1 -1
- package/dist/identity/web.mjs +1 -1
- package/dist/index.js +29 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +29 -14
- package/dist/index.mjs.map +1 -1
- package/dist/stripe-multichain/index.js +7 -0
- package/dist/stripe-multichain/index.js.map +1 -1
- package/dist/stripe-multichain/index.mjs +7 -0
- package/dist/stripe-multichain/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -21070,6 +21070,7 @@ async function createMultichainPaymentIntent({
|
|
|
21070
21070
|
|
|
21071
21071
|
// src/stripe-multichain/pay_to_address.ts
|
|
21072
21072
|
var DEFAULT_NETWORKS = ["tempo", "base", "solana"];
|
|
21073
|
+
var warnedRotatingSolanaMint = false;
|
|
21073
21074
|
async function createPayToAddressFromStripePI(opts) {
|
|
21074
21075
|
const fromCredential = await tryResolveFromCredential(opts);
|
|
21075
21076
|
if (fromCredential !== null) return fromCredential;
|
|
@@ -21134,6 +21135,12 @@ async function mintAndCache(opts) {
|
|
|
21134
21135
|
const staticRecipients = opts.staticRecipients ?? {};
|
|
21135
21136
|
const requestedNetworks = opts.networks ?? [...DEFAULT_NETWORKS];
|
|
21136
21137
|
const stripeNetworks = requestedNetworks.filter((n) => !(n in staticRecipients));
|
|
21138
|
+
if (stripeNetworks.includes("solana") && !warnedRotatingSolanaMint) {
|
|
21139
|
+
warnedRotatingSolanaMint = true;
|
|
21140
|
+
console.warn(
|
|
21141
|
+
"[stripe-multichain] Minting a per-PaymentIntent (rotating) Solana recipient. Solana MPP settle fails on @solana/mpp >=0.6.0 for rotating recipients: the client does not create the primary recipient ATA, so a fresh deposit address has no token account to receive into. Use a static Solana recipient with a pre-funded ATA (staticRecipients: { solana: '<wallet>' }), or drop 'solana' from networks."
|
|
21142
|
+
);
|
|
21143
|
+
}
|
|
21137
21144
|
const idempotencyKey = opts.orderId ? `pi-${opts.orderId}-${opts.amountCents}` : void 0;
|
|
21138
21145
|
const { paymentIntentId, depositAddresses } = await createMultichainPaymentIntent({
|
|
21139
21146
|
stripe: opts.stripe,
|