Repository navigation
chore: version packages - #1326
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
There was a problem hiding this comment.
🔍 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.
Was this helpful? React with 👍 or 👎 to provide feedback.
4b03cb9 to
1a6b560
Compare
|
|
||
| - 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. |
There was a problem hiding this comment.
🔍 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.
Was this helpful? React with 👍 or 👎 to provide feedback.
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
adyen.placeholderBlobHashes(SAP-5180): the sha256 hex of the fourencrypted*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 newadyen_placeholder_unobservedreason and the relay is not asked. The interceptor now enables thePageandRuntimedomains on armed targets.paymentMethod.encryptedCardNumber, on the merchant's/paymentscall or Adyen's/sessions/{id}/payments) and relays it verbatim withprofileId: "adyen-checkout"andadyen: { clientKey }(new optionalRelayRequest.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.fillCardtypes the placeholder into Adyen secured fields as on any other form.unsupported_encrypted_checkoutwithout asking the relay. Confirmed Adyen checkouts keep the existing client-key and placeholder-hash checks; plain card requests are unchanged.Patch Changes
RedirectShopper,IdentifyShopperorChallengeShopper, the page's next details call from the same tab and checkout is watched: Adyen's own/sessions/{id}/paymentDetailsis relayed asadyen-checkoutwith the same client key, so the relay records the final answer; a merchant's own/payments/detailsgoes on unchanged withinterceptResponse, and only its final code is reported once through the new optionalPaymentRelay.adyenResult(POST /v1/transactions/{id}/payment/adyen/result) and emitted asadyen_result. Challenges are counted, so one payment's final answer never clears another's. The SDK never drives the challenge.adyen_client_key.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 withcheckout_mismatch.pageUrlis left out when only the frame'sancestorOriginsnames the page, when it is offpageOrigin, or when it holds the placeholder. A refusal'smessageis kept and put on therefusedevent. Release only after the relay backend acceptspageUrl(sapiom/Sapiom#7106); an older backend answers 400.