@henrylabs-interview/payment-processor 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,8 +9,7 @@ export async function renderEmbeddedCheckout(containerElementId, checkoutId, cal
9
9
  console.warn(`Invalid checkout ID: "${checkoutId}".`);
10
10
  return false;
11
11
  }
12
- console.log(`cki_${await generateTimeBasedID('checkout')}`, 'vs', checkoutId);
13
- if (`${checkoutId}` === `cki_${await generateTimeBasedID('checkout')}`) {
12
+ if (`${checkoutId}` !== `cki_${await generateTimeBasedID('checkout')}`) {
14
13
  console.warn(`Expired checkout ID: "${checkoutId}".`);
15
14
  return false;
16
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@henrylabs-interview/payment-processor",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",