Skip to content

Return Prime app (adapter module) - #17

Merged
prima-nilesh merged 5 commits into
mainfrom
feature/return-prime-adapter
Jul 17, 2026
Merged

Return Prime app (adapter module)#17
prima-nilesh merged 5 commits into
mainfrom
feature/return-prime-adapter

Conversation

@prima-nilesh

Copy link
Copy Markdown
Collaborator

No description provided.

nilesh-gk added 5 commits July 1, 2026 11:21
OS orders never populate a real transactions array, so RP's
GET /rp/shopify/orders/:id/transactions always returned empty regardless
of whether the order was COD or prepaid — RP's COD-detection logic reads
this endpoint and was defaulting every OS order to COD. Now derives a
single Shopify-shaped transaction from the order's own
financial_status/payment_details when it indicates a captured payment.
- rp-sdk: zero-markup storefront integration — auto-detects order pages
  and injects Return/Exchange buttons + a /apps/return_prime page filler,
  with an enable/disable check and a portal iframe
- webhooks: handle OS app/uninstalled — deactivate the adapter's own
  merchant record and relay to RP's new os-uninstall endpoint, closing
  the gap where an uninstalled OS store kept working indefinitely
- transformer: set inventory_management: null on OS variants so RP's
  checkBlocked() doesn't mark every OS product unconditionally blocked
- portal: resolve order name from a bare orderId for the SDK, but never
  resolve email/phone from orderId alone (no ownership proof) — matches
  RP's existing require-caller-supplied-email model, avoids a PII oracle
- admin-rp: fix onboarding snippet to use VITE_API_BASE_URL (was
  referencing a nonexistent env var, breaking every new merchant's
  copy-pasted script tag by default)
- config/sdk: wildcard CORS on the public config + SDK bundle endpoints
…adapter

# Conflicts:
#	apps/backend/test/unit/meta/catalog-source-paging.test.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants