Skip to content

Conversation

Muhammad-Owais-Warsi
Copy link

@Muhammad-Owais-Warsi Muhammad-Owais-Warsi commented Oct 1, 2025

Guide on how storefront and digital product delivery can be used for ebook service.

📋 Description

Add a guide on how storefront and digital product delivery can be used for ebook service.on

🎯 Type of Change

  • 📝 Documentation update (improving existing docs)
  • ✨ New documentation (adding new guides, API docs, etc.)
  • 🐛 Bug fix (fixing errors, broken links, incorrect information)
  • 🎨 Style/formatting (improving readability, fixing formatting)
  • 🏗️ Structural change (reorganizing content, navigation updates)
  • 🌐 Translation (adding or improving translations)
  • 🖼️ Assets (adding or updating images, diagrams)

📖 What documentation does this PR affect?

  • Getting Started / Setup
  • API Reference
  • Developer Resources
  • Integration Guides
  • Features Documentation
  • External Integrations
  • Changelog
  • Other:

✅ Checklist

  • I have read the Contributing Guidelines
  • I have tested my changes locally with mintlify dev
  • All links are working correctly
  • Images are properly displayed and optimized
  • Code examples are tested and working
  • I have updated the navigation in docs.json (if applicable)
  • My changes follow the project's style guide
  • I have performed a self-review of my changes
  • I have added appropriate frontmatter to new pages

🧪 Testing

  • Verified locally at http://localhost:3000
  • Checked responsive design on mobile viewport
  • Tested all code examples
  • Validated all external links

📸 Screenshots (if applicable)

🔗 Related Issues

Closes #96

📝 Additional Notes

👥 Reviewers

@dodopayments/documentation-team

Summary by CodeRabbit

  • Documentation
    • Added a comprehensive "Storefront and Digital Product Delivery Guide" with step‑by‑step instructions for configuring storefronts, creating products (details, pricing, advanced settings like files/metadata), creating stores, publishing, and post‑purchase delivery via download links and example validations.
    • Added the new guide to Developer Resources → Integration Guides for improved discoverability.

Copy link
Contributor

coderabbitai bot commented Oct 1, 2025

Walkthrough

Adds a new developer guide MDX documenting Storefront and Digital Product Delivery (product and store creation, publishing, delivery flow including secure download links and post-purchase emails) and registers the guide in docs.json under Developer Resources → Integration Guides. No runtime code or API changes.

Changes

Cohort / File(s) Summary of Changes
Documentation Content
developer-resources/storefront-and-digital-product-delivery.mdx
Added a new MDX guide covering Storefront and Digital Product Delivery: overview, step-by-step product creation (details, pricing, advanced settings), store creation, publishing, delivery flow (secure download links, post-purchase emails), example fields/validation and UI blocks.
Docs Navigation / Config
docs.json
Registered new page developer-resources/storefront-and-digital-product-delivery under Developer Resources → Integration Guides; no other structural edits.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  actor Buyer
  participant Storefront
  participant Payment as Payment Processor
  participant Delivery as Digital Delivery Service
  participant Email as Email Service

  rect rgb(250,250,255)
  note over Buyer,Storefront: Browse & checkout
  Buyer->>Storefront: View product / Add to cart / Checkout
  Storefront->>Payment: Create charge
  Payment-->>Storefront: Success / Failure
  end

  alt Payment success
    rect rgb(240,255,240)
    note over Storefront,Delivery: Fulfillment & delivery
    Storefront->>Delivery: Request secure download link(s)
    Delivery-->>Storefront: Link(s) + expiry metadata
    Storefront->>Email: Send confirmation with link(s)
    Email-->>Buyer: Receipt + download link(s)
    Buyer->>Delivery: Download file(s)
    end
  else Payment failure
    Storefront-->>Buyer: Show error / retry options
  end
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

I thump and tap — a page appears,
Guides for stores and digital gears.
From product seed to download track,
A carrot trail for checkout back.
Hop, click, receive — the rabbit cheers. 🥕📜

Pre-merge checks and finishing touches

✅ Passed checks (5 passed)
Check name Status Explanation
Title Check ✅ Passed The title clearly summarises the main change of adding a new guide on storefront and digital product delivery and directly reflects the PR’s primary objective.
Linked Issues Check ✅ Passed The documentation guide fully addresses the linked issue by detailing storefront and digital product delivery configuration and workflows for the ebook use case, demonstrating integration patterns and closing the specified feature request.
Out of Scope Changes Check ✅ Passed All modifications are confined to adding the new MDX guide and updating the documentation navigation file, with no unrelated or extraneous changes outside the scope of the linked feature request.
Description Check ✅ Passed The PR description follows the repository template by including all required sections with marked change type, affected docs, checklist, testing details, related issue, and reviewers, providing clear and structured context for the new guide.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 3243113 and 48fe447.

📒 Files selected for processing (1)
  • docs.json (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • docs.json

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a83d02c and 85f6d8b.

📒 Files selected for processing (2)
  • developer-resources/storefront-and-digital-product-delivery.mdx (1 hunks)
  • docs.json (1 hunks)
🧰 Additional context used
📓 Path-based instructions (2)
**/*.{md,mdx}

📄 CodeRabbit inference engine (.cursor/rules/mintlify.mdc)

Every documentation page must begin with YAML frontmatter containing title and description

Files:

  • developer-resources/storefront-and-digital-product-delivery.mdx
**/*.mdx

📄 CodeRabbit inference engine (.cursor/rules/mintlify.mdc)

**/*.mdx: Use clear, direct language appropriate for technical audiences
Write instructions in second person (you)
Use active voice over passive voice
Use present tense for current states and future tense for outcomes
Maintain consistent terminology across documentation
Keep sentences concise while preserving necessary context
Use parallel structure in lists, headings, and procedures
Lead sections with the most important information (inverted pyramid)
Use progressive disclosure: introduce basics before advanced topics
Break complex procedures into numbered steps using /
Include prerequisites and context before instructions
Provide expected outcomes for each major step
End sections with next steps or related information
Use descriptive, keyword-rich headings for navigation and SEO
Focus on user goals and outcomes rather than system features
Anticipate common questions and address them proactively
Include troubleshooting for likely failure points
Provide multiple pathways (beginner vs advanced) when appropriate, with an opinionated recommended path
Use for supplementary information that supports main content
Use for expert advice, shortcuts, or best practices
Use for critical cautions, breaking changes, or destructive actions
Use for neutral background or contextual information
Use for success confirmations or achievement indicators
Use to present the same concept in multiple languages
Provide complete, runnable code examples with language specified and filename when relevant
Include RequestExample/ResponseExample blocks for API endpoint docs
Document API parameters using (path, query, header, body) with types and required/defaults
Document API responses using with names, types, and required flags
Use for nested object properties or hierarchical information
Use / for platform-specific or alternative approaches
Use / for suppl...

Files:

  • developer-resources/storefront-and-digital-product-delivery.mdx

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

♻️ Duplicate comments (1)
developer-resources/storefront-and-digital-product-delivery.mdx (1)

22-128: Add explicit prerequisites before the workflow.

The guide jumps straight into procedural steps without listing prerequisites, which violates the style guidance and leaves readers guessing about required access, enabled features, and assets. Please insert a “### Prerequisites” section ahead of the first block that covers items like Storefront access, Digital Product Delivery enabled, sample ebook file, and pricing details.

 ## Creating a Product
 Create a product with **Digital Product Delivery** 
 
 ### Step-by-Step Product Creation
 
-Follow this guide to create produuct with PDP feature:
+### Prerequisites
+- You have merchant access with Storefront and Digital Product Delivery enabled.
+- You prepared your ebook file (PDF/EPUB) and cover image.
+- You captured pricing, tax category, and metadata details.
+
+### Step-by-Step Product Creation
+
+Follow this guide to create a product with the Digital Product Delivery feature:
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 85f6d8b and 851eab6.

📒 Files selected for processing (1)
  • developer-resources/storefront-and-digital-product-delivery.mdx (1 hunks)
🧰 Additional context used
📓 Path-based instructions (2)
**/*.{md,mdx}

📄 CodeRabbit inference engine (.cursor/rules/mintlify.mdc)

Every documentation page must begin with YAML frontmatter containing title and description

Files:

  • developer-resources/storefront-and-digital-product-delivery.mdx
**/*.mdx

📄 CodeRabbit inference engine (.cursor/rules/mintlify.mdc)

**/*.mdx: Use clear, direct language appropriate for technical audiences
Write instructions in second person (you)
Use active voice over passive voice
Use present tense for current states and future tense for outcomes
Maintain consistent terminology across documentation
Keep sentences concise while preserving necessary context
Use parallel structure in lists, headings, and procedures
Lead sections with the most important information (inverted pyramid)
Use progressive disclosure: introduce basics before advanced topics
Break complex procedures into numbered steps using /
Include prerequisites and context before instructions
Provide expected outcomes for each major step
End sections with next steps or related information
Use descriptive, keyword-rich headings for navigation and SEO
Focus on user goals and outcomes rather than system features
Anticipate common questions and address them proactively
Include troubleshooting for likely failure points
Provide multiple pathways (beginner vs advanced) when appropriate, with an opinionated recommended path
Use for supplementary information that supports main content
Use for expert advice, shortcuts, or best practices
Use for critical cautions, breaking changes, or destructive actions
Use for neutral background or contextual information
Use for success confirmations or achievement indicators
Use to present the same concept in multiple languages
Provide complete, runnable code examples with language specified and filename when relevant
Include RequestExample/ResponseExample blocks for API endpoint docs
Document API parameters using (path, query, header, body) with types and required/defaults
Document API responses using with names, types, and required flags
Use for nested object properties or hierarchical information
Use / for platform-specific or alternative approaches
Use / for suppl...

Files:

  • developer-resources/storefront-and-digital-product-delivery.mdx
🧠 Learnings (2)
📚 Learning: 2025-09-15T12:32:29.480Z
Learnt from: CR
PR: dodopayments/dodo-docs#0
File: .cursor/rules/mintlify.mdc:0-0
Timestamp: 2025-09-15T12:32:29.480Z
Learning: Applies to **/*.mdx : Explain prerequisites clearly before beginning instructions

Applied to files:

  • developer-resources/storefront-and-digital-product-delivery.mdx
📚 Learning: 2025-09-15T12:32:29.480Z
Learnt from: CR
PR: dodopayments/dodo-docs#0
File: .cursor/rules/mintlify.mdc:0-0
Timestamp: 2025-09-15T12:32:29.480Z
Learning: Applies to **/*.mdx : Include prerequisites and context before instructions

Applied to files:

  • developer-resources/storefront-and-digital-product-delivery.mdx

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

♻️ Duplicate comments (1)
developer-resources/storefront-and-digital-product-delivery.mdx (1)

25-118: Add prerequisite context before the numbered steps.

The style guide (and our previous review) requires a dedicated prerequisites section ahead of the procedural steps so readers know what accounts, feature flags, and assets they need before starting. Please add that context before “Step-by-Step Product Creation.”

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 851eab6 and 5143c10.

📒 Files selected for processing (1)
  • developer-resources/storefront-and-digital-product-delivery.mdx (1 hunks)
🧰 Additional context used
📓 Path-based instructions (2)
**/*.{md,mdx}

📄 CodeRabbit inference engine (.cursor/rules/mintlify.mdc)

Every documentation page must begin with YAML frontmatter containing title and description

Files:

  • developer-resources/storefront-and-digital-product-delivery.mdx
**/*.mdx

📄 CodeRabbit inference engine (.cursor/rules/mintlify.mdc)

**/*.mdx: Use clear, direct language appropriate for technical audiences
Write instructions in second person (you)
Use active voice over passive voice
Use present tense for current states and future tense for outcomes
Maintain consistent terminology across documentation
Keep sentences concise while preserving necessary context
Use parallel structure in lists, headings, and procedures
Lead sections with the most important information (inverted pyramid)
Use progressive disclosure: introduce basics before advanced topics
Break complex procedures into numbered steps using /
Include prerequisites and context before instructions
Provide expected outcomes for each major step
End sections with next steps or related information
Use descriptive, keyword-rich headings for navigation and SEO
Focus on user goals and outcomes rather than system features
Anticipate common questions and address them proactively
Include troubleshooting for likely failure points
Provide multiple pathways (beginner vs advanced) when appropriate, with an opinionated recommended path
Use for supplementary information that supports main content
Use for expert advice, shortcuts, or best practices
Use for critical cautions, breaking changes, or destructive actions
Use for neutral background or contextual information
Use for success confirmations or achievement indicators
Use to present the same concept in multiple languages
Provide complete, runnable code examples with language specified and filename when relevant
Include RequestExample/ResponseExample blocks for API endpoint docs
Document API parameters using (path, query, header, body) with types and required/defaults
Document API responses using with names, types, and required flags
Use for nested object properties or hierarchical information
Use / for platform-specific or alternative approaches
Use / for suppl...

Files:

  • developer-resources/storefront-and-digital-product-delivery.mdx
🧠 Learnings (2)
📚 Learning: 2025-09-15T12:32:29.480Z
Learnt from: CR
PR: dodopayments/dodo-docs#0
File: .cursor/rules/mintlify.mdc:0-0
Timestamp: 2025-09-15T12:32:29.480Z
Learning: Applies to **/*.mdx : Explain prerequisites clearly before beginning instructions

Applied to files:

  • developer-resources/storefront-and-digital-product-delivery.mdx
📚 Learning: 2025-09-15T12:32:29.480Z
Learnt from: CR
PR: dodopayments/dodo-docs#0
File: .cursor/rules/mintlify.mdc:0-0
Timestamp: 2025-09-15T12:32:29.480Z
Learning: Applies to **/*.mdx : Include prerequisites and context before instructions

Applied to files:

  • developer-resources/storefront-and-digital-product-delivery.mdx

@whitesideofthesun
Copy link
Collaborator

@Muhammad-Owais-Warsi

This follwing line doesn't make sense here.
Screenshot 2025-10-07 at 6 31 27 PM

Can you also show the following?

  1. How storefront looks after confguration
  2. How digital product is delivered after a purchase.
  3. Again, provide actual values for input field.
Screenshot 2025-10-07 at 6 33 49 PM

@Muhammad-Owais-Warsi
Copy link
Author

hey @whitesideofthesun how to show the email on test payments?

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.

[Feature]: Guide for Storefront and Digital Product Delivery

2 participants