Skip to content

Conversation

Copy link

Copilot AI commented Feb 12, 2026

The Polar SDK API changed between v0.20.2 and v0.42.5, breaking the checkout flow. The checkouts.custom.create() method no longer exists.

Changes

  • Updated checkout API call from polar.checkouts.custom.create() to polar.checkouts.create()
  • Changed parameter structure: productPriceId now passed as products: [productPriceId] array per new API requirements
// Before
result = await polar.checkouts.custom.create({
  productPriceId,
  successUrl: 'https://docs.shepherdjs.dev'
});

// After
result = await polar.checkouts.create({
  products: [productPriceId],
  successUrl: 'https://docs.shepherdjs.dev'
});

The new API requires products as an array of product IDs. The SDK was completely regenerated in v0.6.0, eliminating the custom namespace.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@vercel
Copy link

vercel bot commented Feb 12, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
shepherd-docs Ready Ready Preview, Comment Feb 12, 2026 3:30am
shepherd-landing Ready Ready Preview, Comment Feb 12, 2026 3:30am

Request Review

Copy link
Author

Copilot AI commented Feb 12, 2026

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • docs.polar.sh
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)
  • download.cypress.io
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node index.js --exec install (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI changed the title [WIP] Update @polar-sh/sdk to version 0.42.5 Update Polar SDK checkout API for v0.42.5 compatibility Feb 12, 2026
@RobbieTheWagner RobbieTheWagner marked this pull request as ready for review February 12, 2026 03:51
@qltysh
Copy link

qltysh bot commented Feb 12, 2026

Qlty

Coverage Impact

Unable to calculate total coverage change because base branch coverage was not found.

🚦 See full report on Qlty Cloud »

🛟 Help
  • Diff Coverage: Coverage for added or modified lines of code (excludes deleted files). Learn more.

  • Total Coverage: Coverage for the whole repository, calculated as the sum of all File Coverage. Learn more.

  • File Coverage: Covered Lines divided by Covered Lines plus Missed Lines. (Excludes non-executable lines including blank lines and comments.)

    • Indirect Changes: Changes to File Coverage for files that were not modified in this PR. Learn more.

@RobbieTheWagner RobbieTheWagner merged commit 65f9681 into dependabot/npm_and_yarn/polar-sh/sdk-0.42.5 Feb 12, 2026
7 checks passed
@RobbieTheWagner RobbieTheWagner deleted the copilot/sub-pr-3347 branch February 12, 2026 03:53
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