Skip to content

Commit 65f9681

Browse files
Update Polar SDK checkout API for v0.42.5 compatibility (#3360)
* Initial plan * Update Polar SDK checkout API from custom.create to create with products array Co-authored-by: RobbieTheWagner <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: RobbieTheWagner <[email protected]>
1 parent 59040e7 commit 65f9681

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

landing/src/actions/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ export const server = {
1717
let result;
1818

1919
try {
20-
result = await polar.checkouts.custom.create({
21-
productPriceId,
20+
result = await polar.checkouts.create({
21+
products: [productPriceId],
2222
successUrl: 'https://docs.shepherdjs.dev'
2323
});
2424
} catch (error) {

0 commit comments

Comments
 (0)