From 5d8093a60161ef58b0fd01d8e263459817577922 Mon Sep 17 00:00:00 2001 From: Eben <73199056+eben92@users.noreply.github.com> Date: Thu, 18 Apr 2024 05:49:53 +0000 Subject: [PATCH] (fix): update script url in readme & examples --- README.md | 10 ++++++---- examples/reactjs/src/App.tsx | 3 ++- libs/use-x-checkout.ts | 2 +- package.json | 2 +- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 25d5987..94b4aee 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,8 @@ import { useXCheckout } from 'react-korba-payment'; function App() { const {pay} = useXCheckout({ - scriptSrc: 'https://paywithkorba.s3-eu-west-1.amazonaws.com/test-checkout.js', // replace with your XCheckout script URL + // replace with your Korba XCheckout script URL + scriptSrc: 'https://testxchange.korba365.com/api/v1.0/website_checkout/', }); return ( @@ -43,7 +44,7 @@ function App() { orderID: '', description: 'Ordered goods', amount: 1.2, // in GH₵ - redirectURL: 'http://www.yourawesomeapp.com', + redirectURL: 'https://www.yourawesomeapp.com', }); }} className="button" @@ -67,7 +68,8 @@ import { useXCheckout } from 'react-korba-payment'; export default function CheckoutButton() { const {pay} = useXCheckout({ - scriptSrc: 'https://paywithkorba.s3-eu-west-1.amazonaws.com/test-checkout.js', // replace with your XCheckout script URL + // replace with your Korba XCheckout script URL + scriptSrc: 'https://testxchange.korba365.com/api/v1.0/website_checkout/', }); return ( @@ -78,7 +80,7 @@ export default function CheckoutButton() { orderID: '', description: 'Ordered goods', amount: 1.2, // in GH₵ - redirectURL: 'http://www.yourawesomeapp.com', + redirectURL: 'https://www.yourawesomeapp.com', }); }} className={styles.button} diff --git a/examples/reactjs/src/App.tsx b/examples/reactjs/src/App.tsx index 7773c26..c5ea315 100644 --- a/examples/reactjs/src/App.tsx +++ b/examples/reactjs/src/App.tsx @@ -3,7 +3,8 @@ import './App.css'; function App() { const {pay} = useXCheckout({ - scriptSrc: 'https://paywithkorba.s3-eu-west-1.amazonaws.com/test-checkout.js', // replace with your XCheckout script URL + // replace with your Korba XCheckout script URL + scriptSrc: 'https://testxchange.korba365.com/api/v1.0/website_checkout/', }); return ( diff --git a/libs/use-x-checkout.ts b/libs/use-x-checkout.ts index 8c92aaf..09aa974 100644 --- a/libs/use-x-checkout.ts +++ b/libs/use-x-checkout.ts @@ -15,7 +15,7 @@ import type { * @example * import { useXCheckout } from 'react-korba-payment'; * - * const { pay, isXCheckoutLoaded } = useXCheckout({ scriptSrc: 'https://paywithkorba.s3-eu-west-1.amazonaws.com/test-checkout.js' }); // replace with your XCheckout script URL + * const { pay, isXCheckoutLoaded } = useXCheckout({ scriptSrc: 'https://testxchange.korba365.com/api/v1.0/website_checkout/' }); // replace with your XCheckout script URL * * @see UseXCheckoutProps * @see XCheckoutHooksReturnProps diff --git a/package.json b/package.json index 4b24fd1..7d9edaa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-korba-payment", - "version": "0.1.2", + "version": "0.1.3", "description": "ReactJS library for korba payment gateway", "main": "dist/index.js", "module": "dist/index.es.js",