@dexterai/x402 1.6.4 → 1.6.6

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.
@@ -577,11 +577,12 @@ if (btn) {
577
577
  payload = btoa(payload);
578
578
 
579
579
  // 6. Build payment-signature header (x402 v2 format)
580
+ // Solana: payload must be { transaction: base64Tx } per SDK spec
580
581
  const paymentSignature = {
581
582
  x402Version: accept.x402Version ?? 2,
582
583
  resource: requirements.resource,
583
584
  accepted: accept,
584
- payload,
585
+ payload: { transaction: payload },
585
586
  };
586
587
  const paymentHeader = btoa(JSON.stringify(paymentSignature));
587
588