Skip to content

Commit

Permalink
Merge pull request #8 from eben92/fix/readme
Browse files Browse the repository at this point in the history
(fix): update script url in readme & examples
  • Loading branch information
eben92 authored Apr 18, 2024
2 parents a6b31f0 + 5d8093a commit 8c2872b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand All @@ -43,7 +44,7 @@ function App() {
orderID: '<unique_order_id>',
description: 'Ordered goods',
amount: 1.2, // in GH₵
redirectURL: 'http://www.yourawesomeapp.com',
redirectURL: 'https://www.yourawesomeapp.com',
});
}}
className="button"
Expand All @@ -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 (
Expand All @@ -78,7 +80,7 @@ export default function CheckoutButton() {
orderID: '<unique_order_id>',
description: 'Ordered goods',
amount: 1.2, // in GH₵
redirectURL: 'http://www.yourawesomeapp.com',
redirectURL: 'https://www.yourawesomeapp.com',
});
}}
className={styles.button}
Expand Down
3 changes: 2 additions & 1 deletion examples/reactjs/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion libs/use-x-checkout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 8c2872b

Please sign in to comment.