Skip to content

Roadmap: Paystack parity and provider-neutral features #108

Backlog

Description

@moset15

One page for everything I have lined up, so you can see the whole picture and the order. Nothing here needs a reply now. Each item that touches core gets its own short proposal before any code, and I'll link it here.

In review now

1. Paystack parity, package only (no core changes)

Item Waits on
Cart coupons with Paystack. Today a Paystack cart with a coupon gets a 409, although Paystack is already charged the discounted total. The package only has to declare coupons. Built and tested; I'll open it when #85 merges. #85
Multi-vendor with Paystack splits, including vendor payouts to M-PESA. Built on the generic split design in #101, #103 and #105, so Paystack and Flutterwave share it: splits at checkout, vendor onboarding from the Vendors page, and the settlement recorded on the order. Paystack subaccounts are in the shop's own Paystack country, so the package only offers payout banks in that country. #101, #103, #105
Subscriptions with Paystack (Plans and Subscriptions), on the provider-neutral subscription design in #114. #114

2. Core, provider-neutral (a proposal first for each)

Item Why
Disputes. A provider's dispute webhook marks the order disputed, emails the merchant with the deadline and a link to the provider's dashboard, and a lost dispute counts like a refund. Evidence stays in the provider's dashboard. Nothing handles disputes today, for Stripe either. Paystack accepts a dispute automatically, and refunds, if the merchant doesn't answer within 16 hours.
Refunds and payment settings for admins only, using EmDash's roles (ctx.user.role). Any user who can open the shop admin can refund an order or change payment keys today.
In-person checkout. A Counter sale page in the admin: the customer pays on a Paystack card terminal (Nigeria, South Africa) or by phone (an M-PESA prompt or a QR code for that exact order), and the order and stock go through the same path as an online order. Editors can run counter sales; refunds stay with admins; each counter order records who sold it. The "POS / async polling" item #40 deferred, kept small: Paystack's devices handle the hardware, so there's no cash drawer, offline mode or receipt printing in core.

3. Checkout, provider-neutral

Item Why
Coupon box at checkout, next to the order summary, as well as on /cart. A shopper who goes from the cart drawer to checkout never sees a coupon box.
Postcode optional. Shipping zones don't use postcodes, and many addresses (Kenya, for one) don't have one, but checkout requires it.
Shipping options shown once on hosted checkout. They appear twice today: in the order summary and in the shipping step.
Checkout starts on the shop's country instead of US. A shop country setting would also let the vendor payout form in #103 start there.
Region rates at checkout (a proposal first). Shipping zones support regions, for example Nairobi and the rest of Kenya, but the admin can't enter them and checkout never asks for one.
Pickup details (a proposal first): location, directions and hours, and no delivery address when the customer picks up. Local pickup has only a price today, and checkout still asks for a full delivery address.

Related but separate: #67 is about linking customer accounts to orders. Nothing here changes customers.

Currencies: nothing here converts currencies. A shop shows and charges only the currencies it has priced, and conversion is left to the buyer's bank or the provider (for example, a Kenyan Paystack account charges in KES and the foreign buyer's bank converts). #96 stays as written.

Order

  1. feat(paystack): Paystack payment provider package #85, then docs(core): an on-page checkout's client data is public #91 to docs(registry-setup): Paystack on the DashCommerce Setup page #95 as above.
  2. Paystack coupons.
  3. Checkout: the coupon box, postcode, shipping options and country first, then the region and pickup proposals.
  4. Paystack splits, once feat(core): split payments across vendor payout accounts #101, feat(core): provider-managed payout account onboarding #103 and feat(core): split settlement and refunds #105 merge.
  5. Paystack subscriptions, once feat(core): add a provider-neutral subscription seam #114 merges.
  6. Disputes.
  7. Admin-only refunds and payment settings.
  8. In-person checkout.

#96 can land whenever you're happy with it; it doesn't depend on the rest.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions