@dexterai/x402 1.6.5 → 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.
@@ -643,11 +643,12 @@ if (btn) {
643
643
  payload = btoa(payload);
644
644
 
645
645
  // 6. Build payment-signature header (x402 v2 format)
646
+ // Solana: payload must be { transaction: base64Tx } per SDK spec
646
647
  const paymentSignature = {
647
648
  x402Version: accept.x402Version ?? 2,
648
649
  resource: requirements.resource,
649
650
  accepted: accept,
650
- payload,
651
+ payload: { transaction: payload },
651
652
  };
652
653
  const paymentHeader = btoa(JSON.stringify(paymentSignature));
653
654