Skip to content

chore: version packages - #1326

Merged
gwitwer merged 1 commit into
mainfrom
changeset-release/main
Nov 26, 2026
Merged

gwitwer merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

@github-actions github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or setup this action to publish automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@sapiom/browser-pay@0.8.0

Minor Changes

  • c83793d: Adyen Pay now carries adyen.placeholderBlobHashes (SAP-5180): the sha256 hex of the four encrypted* blobs the page's secured-field iframes posted, observed passively in the page and never kept or logged as blobs. A Pay with any of the four unobserved fails locally with the new adyen_placeholder_unobserved reason and the relay is not asked. The interceptor now enables the Page and Runtime domains on armed targets.
  • c83793d: Pay Adyen secured-fields checkouts through the payment relay (SAP-5180). The interceptor pauses an outgoing Adyen payment (paymentMethod.encryptedCardNumber, on the merchant's /payments call or Adyen's /sessions/{id}/payments) and relays it verbatim with profileId: "adyen-checkout" and adyen: { clientKey } (new optional RelayRequest.adyen). The relay encrypts the real card in place of the page's placeholder ciphertext and its response fulfils the page's request; a refusal fails it, so the placeholder's ciphertext is never sent on. fillCard types the placeholder into Adyen secured fields as on any other form.
  • c83793d: Require an Adyen iframe or network signal from the same attach before relaying encrypted card payments (SAP-5180). Without one, fail locally with unsupported_encrypted_checkout without asking the relay. Confirmed Adyen checkouts keep the existing client-key and placeholder-hash checks; plain card requests are unchanged.

Patch Changes

  • f5a1932: Follow an Adyen payment through 3-D Secure (SAP-5281). When the relay answers a payment with RedirectShopper, IdentifyShopper or ChallengeShopper, the page's next details call from the same tab and checkout is watched: Adyen's own /sessions/{id}/paymentDetails is relayed as adyen-checkout with the same client key, so the relay records the final answer; a merchant's own /payments/details goes on unchanged with interceptResponse, and only its final code is reported once through the new optional PaymentRelay.adyenResult (POST /v1/transactions/{id}/payment/adyen/result) and emitted as adyen_result. Challenges are counted, so one payment's final answer never clears another's. The SDK never drives the challenge.
  • c83793d: Take the Adyen client key only from the browser's own https requests to Adyen's checkoutshopper hosts (SAP-5180). A key the page puts in its DOM is never used; no key, or two different keys, fails the payment closed with adyen_client_key.
  • f126ec4: Send the paying page's URL with the card relay (SAP-5356). The relay request carries an optional pageUrl, the top-level page's origin and path without query or fragment, so the relay can refuse a payment from a Shopify checkout other than the purchase's with checkout_mismatch. pageUrl is left out when only the frame's ancestorOrigins names the page, when it is off pageOrigin, or when it holds the placeholder. A refusal's message is kept and put on the refused event. Release only after the relay backend accepts pageUrl (sapiom/Sapiom#7106); an older backend answers 400.

@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2315e525-be27-4861-9572-122c2aa99131

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions github-actions Bot added contribution: incomplete Required pull request information is incomplete or ambiguous contributor: external Pull request author does not have write, maintain, or admin access to sapiom-js review: manual External pull request requires maintainer review before automation review: sensitive Changes affect sensitive repository or release infrastructure size: small Review size is at most 100 changed lines area: sdk Changes to SDK core or analytics labels Nov 24, 2026

@devin-ai-integration devin-ai-integration Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note

Newer findings are available below. Devin Review posted a newer report on this PR, in addition to the findings presented here.

Devin Review found 1 potential issue.

Devin Review

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 Release instructions omit existing automation

The PR description points to manual publishing or Changesets setup. The publish workflow already checks npm after merge and requests approval when a version is unpublished.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

@github-actions
github-actions Bot force-pushed the changeset-release/main branch from 4b03cb9 to 1a6b560 Compare November 26, 2026 04:45

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 new potential issue.

Devin Review


- f5a1932: Follow an Adyen payment through 3-D Secure (SAP-5281). When the relay answers a payment with `RedirectShopper`, `IdentifyShopper` or `ChallengeShopper`, the page's next details call from the same tab and checkout is watched: Adyen's own `/sessions/{id}/paymentDetails` is relayed as `adyen-checkout` with the same client key, so the relay records the final answer; a merchant's own `/payments/details` goes on unchanged with `interceptResponse`, and only its final code is reported once through the new optional `PaymentRelay.adyenResult` (`POST /v1/transactions/{id}/payment/adyen/result`) and emitted as `adyen_result`. Challenges are counted, so one payment's final answer never clears another's. The SDK never drives the challenge.
- c83793d: Take the Adyen client key only from the browser's own https requests to Adyen's checkoutshopper hosts (SAP-5180). A key the page puts in its DOM is never used; no key, or two different keys, fails the payment closed with `adyen_client_key`.
- f126ec4: Send the paying page's URL with the card relay (SAP-5356). The relay request carries an optional `pageUrl`, the top-level page's origin and path without query or fragment, so the relay can refuse a payment from a Shopify checkout other than the purchase's with `checkout_mismatch`. `pageUrl` is left out when only the frame's `ancestorOrigins` names the page, when it is off `pageOrigin`, or when it holds the placeholder. A refusal's `message` is kept and put on the `refused` event. Release only after the relay backend accepts `pageUrl` (sapiom/Sapiom#7106); an older backend answers 400.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 Backend rollout gates npm approval

The npm publish workflow checks release readiness and npm versions, not whether the deployed relay accepts pageUrl. Verify backend compatibility before approving publication.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

@gwitwer
gwitwer merged commit ea46324 into main Nov 26, 2026
5 checks passed
@gwitwer
gwitwer deleted the changeset-release/main branch November 26, 2026 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: sdk Changes to SDK core or analytics contribution: incomplete Required pull request information is incomplete or ambiguous contributor: external Pull request author does not have write, maintain, or admin access to sapiom-js review: manual External pull request requires maintainer review before automation review: sensitive Changes affect sensitive repository or release infrastructure size: small Review size is at most 100 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant