feat: add merchant payments product SDK#86
Open
replghost wants to merge 13 commits into
Open
Conversation
862b979 to
471f813
Compare
📦 Bundle size impactComparing
Thresholds — warn: ≥10% or ≥5.0 KB · fail: ≥20% or ≥15.0 KB (bundled). Percentage only applies once the baseline is ≥ 10 KB. |
020e66d to
fd59ce5
Compare
Member
|
Needs to pull in main in order for the e2e tests to pass. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #85.
Adds a product-bundled Merchant Payments SDK for T3rminal-style checkout flows on top of host CoinPayment primitives. This keeps merchant checkout logic in product-sdk/product code rather than requiring
window.ua.ext.merchantPaymentsin the host.What changed
@parity/product-sdk-merchant-paymentsand umbrella@parity/product-sdk/merchant-paymentsexports for intent, invoice, status, receipt, refund, and purse summary helpers.packages/merchant-payments/docs/merchant-payments-product-sdk.md.Test plan
pnpm --filter @parity/product-sdk-coinpayment testpnpm --filter @parity/product-sdk-merchant-payments testpnpm --filter @parity/product-sdk-coinpayment buildpnpm --filter @parity/product-sdk-merchant-payments buildpnpm --filter @parity/product-sdk-contracts buildpnpm --filter @parity/product-sdk buildRelease request
Please cut a beta npm release from this branch/PR so T3rminal can consume the SDK before this lands on
main.