From 59339ad5d7bdfe5eb2a8f5a932a1ae043ec0731a Mon Sep 17 00:00:00 2001 From: Swashata Ghosh Date: Thu, 14 Nov 2024 18:40:33 +0530 Subject: [PATCH] [options] [update] Add new product_id and make plugin_id as alias. --- README.md | 24 ++++++++++++++---------- src/adapter.ts | 10 +++++----- src/lib/checkout.spec.ts | 19 +++++++++++++++++++ src/lib/checkout.ts | 23 +++++++++++++++-------- src/lib/contracts/IFSOldCheckout.ts | 9 ++++++--- src/lib/types.ts | 28 ++++++++++++++++++++++++++-- 6 files changed, 85 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index b968293..8c3bf5c 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ - [Instantiate the class](#instantiate-the-class) - [Calling the method](#calling-the-method) - [Use with React](#use-with-react) -- [Testing with Sandbox](#testing-with-sandbox) +- [Testing with Sandbox](#testing-with-the-sandbox) - [Migration guide](#migration-guide) - [Contributing](#contributing) @@ -50,7 +50,7 @@ function getSelectedLicenses() { } const handler = new Checkout({ - plugin_id: '311', + product_id: '311', public_key: 'pk_a42d2ee6de0b31c389d5d11e36211', }); @@ -104,7 +104,7 @@ need to hook into the `load` event of `window` or use `window.onload`.