Skip to content

Commit

Permalink
Merge pull request #27 from commercelayer/update-checkout-url
Browse files Browse the repository at this point in the history
Update the URL of the hosted checkout
  • Loading branch information
marcomontalbano authored Mar 21, 2023
2 parents 4176d4d + a4058b2 commit aa8105e
Show file tree
Hide file tree
Showing 6 changed files with 131 additions and 156 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"husky": "^8.0.3",
"lerna": "^6.5.1",
"lint-staged": "^13.2.0",
"npm-check-updates": "^16.7.12",
"npm-check-updates": "^16.7.13",
"replace-in-file": "^6.3.5",
"typescript": "^5.0.2"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/drop-in/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"email": "marco.montalbano@commercelayer.io"
},
"dependencies": {
"@commercelayer/sdk": "^4.25.0",
"@commercelayer/sdk": "^4.26.0",
"@types/lodash": "^4.14.191",
"iframe-resizer": "4.3.6",
"js-cookie": "^3.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/drop-in/src/apis/commercelayer/cart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export async function getCheckoutUrl(): Promise<string | undefined> {
return undefined
}

return `https://${config.slug}.checkout.commercelayer.app/${
return `https://${config.slug}.commercelayer.app/checkout/${
cart.id ?? 'null'
}?accessToken=${accessToken}`
}
Expand Down
6 changes: 3 additions & 3 deletions packages/drop-in/src/index.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ describe('index.e2e', () => {
<cl-checkout-link target="_blank" cl-hydrated>
<mock:shadow-root>
<a
href="https://drop-in-js.checkout.commercelayer.app/${cartId}?accessToken=${accessToken}"
href="https://drop-in-js.commercelayer.app/checkout/${cartId}?accessToken=${accessToken}"
part="a"
target="_blank"
>
Expand Down Expand Up @@ -680,7 +680,7 @@ describe('index.e2e', () => {
<cl-checkout-link target="_blank" cl-hydrated>
<mock:shadow-root>
<a
href="https://drop-in-js.checkout.commercelayer.app/${cartId}?accessToken=${accessToken}"
href="https://drop-in-js.commercelayer.app/checkout/${cartId}?accessToken=${accessToken}"
part="a"
target="_blank"
>
Expand Down Expand Up @@ -732,7 +732,7 @@ describe('index.e2e', () => {
<cl-checkout-link target="_blank" cl-hydrated>
<mock:shadow-root>
<a
href="https://drop-in-js.checkout.commercelayer.app/${cartId}?accessToken=${accessToken}"
href="https://drop-in-js.commercelayer.app/checkout/${cartId}?accessToken=${accessToken}"
part="a"
target="_blank"
>
Expand Down
2 changes: 0 additions & 2 deletions packages/drop-in/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
"jest.spec.helpers": ["jest.spec.helpers"]
},

"importsNotUsedAsValues": "error",

"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
Expand Down
Loading

0 comments on commit aa8105e

Please sign in to comment.