Skip to content

v0.22.0

Choose a tag to compare

@github-actions github-actions released this 02 Nov 20:18
· 81 commits to master since this release
v0.22.0
2a101ec

Callers can now fund prepaid credit with a card through Stripe Link, and unspent card credit is refunded to that card. Card credit is opt-in: a DVM offers it only when DVMKIT_STRIPE_SECRET_KEY is set (a restricted key works; docs/OPERATING.md lists the permissions).

Breaking API changes

None removed or renamed. Added to @dvmkit/sdk/server: createStripeCreditRail, CreateStripeCreditRailOpts, StripeCreditRail, StripeCreditConfig, STRIPE_CREDIT_MIN_MICRO, StripeChargeFacts, StripeChargeOutcome, StripeErrorCodes, StripePaymentIntentSummary, StripeRefund, StripeRefundApi, StripeDispute, CardChargeAttempt, CardChargeJournal. Wire additions (optional fields): credit.stripe, drain.refund_ids, drain.card_refund, credit.refund_drain_id; stripe is a new credit funding and drain method.

Migrations

None required. On a Postgres host, init() creates one new table, card_charge_attempts (the card charge journal used to find charges that never reached a credit). Existing DVMs that don't set DVMKIT_STRIPE_SECRET_KEY behave as before.

Compatibility requirements

None changed: same engines.node and dependency floors as 0.21.2.

dvmctl and platform prerequisites

No new dvmctl version. A DVM that turns card credit on needs a platform that accepts stripe credit deposits, draws and drains in its credit reports; DVMs that leave it off need nothing new.

What's Changed

  • feat(credit): fund prepaid credit by card through Stripe shared payment tokens by @aioli3 in #92
  • feat(credit): refund card-funded credit to the card by @aioli3 in #94
  • chore(master): release 0.22.0 by @dvmkit-release-automation[bot] in #93

Full Changelog: v0.21.2...v0.22.0