Skip to content

Commit

Permalink
Merge pull request #9 from HydrogenAfrica/develop
Browse files Browse the repository at this point in the history
update script url
  • Loading branch information
folafunmi-db authored Jun 26, 2024
2 parents 2982aa7 + 6a0a816 commit aea325e
Show file tree
Hide file tree
Showing 6 changed files with 18,111 additions and 10,281 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-to-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '18.x'
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: Publish package on NPM 📦
run: npm publish
run: npm i -f && npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,5 +215,4 @@ export default function App() {
| buttontextStyles | `Object` | Optional | Button text style |
| isRecurring | `boolean` | Optional | Recurring Payment |
| frequency | `String` | Optional | Recurring Payment frequency |
| endDate | `String` | Optional | Recurring Payment end date |
| autoStart | `Boolean` | Optional | Automatically start the sdk |
3 changes: 1 addition & 2 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,11 @@ export default function App() {
email="test@mail.com" // REQUIRED
customerName="John Doe" // REQUIRED
meta="ewr34we4w" // OPTIONAL
token="E2E411B102072296C73F76339497FB8529FF552F0D6817E0F3B46A243961CA21" // REQUIRED
token="C1B70AB4DBFCF08720E22B009552BC8F4D81158FA0E0898CB9446B0F0DF59040" // REQUIRED
description="Test description" // OPTIONAL
currency="NGN" // REQUIRED
frequency={1} // OPTIONAL
isRecurring={false} // OPTIONAL
endDate={'2023-10-29'} // OPTIONAL
onClose={(e) => onClose(e)} // OPTIONAL
onSuccess={(e) => onSuccess(e)} // OPTIONAL
ref={hydrogenPayRef} // REQUIRED
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hydrogenpay-react-native-webview",
"version": "0.0.3",
"version": "0.0.4",
"description": "HydrogenPay's react native webview wrapper",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down Expand Up @@ -30,7 +30,9 @@
"test": "jest",
"typecheck": "tsc --noEmit",
"lint": "eslint \"**/*.{js,ts,tsx}\"",
"clean": "del-cli lib"
"clean": "del-cli lib",
"prepare": "bob build",
"release": "release-it"
},
"keywords": [
"react-native",
Expand Down
5 changes: 2 additions & 3 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const HydrogenCheckout = forwardRef(
<title>Hydrogen Pay</title>
</head>
<body>
<script src="https://hydrogenshared.blob.core.windows.net/paymentgateway/paymentGatewayIntegration_v1.js" module>
<script src="https://hydrogenshared.blob.core.windows.net/paymentgateway/paymentGatewayIntegration_v1PROD.js" module>
</script>
<script>
let paymentResponse;
Expand All @@ -65,7 +65,6 @@ export const HydrogenCheckout = forwardRef(
"isAPI": false,
"isRecurring":${payload.isRecurring},
"frequency":${payload.frequency},
"endDate" : "${payload.endDate}",
"CustomerName":"${payload.customerName}"
}
Expand All @@ -92,7 +91,7 @@ export const HydrogenCheckout = forwardRef(
onSuccess(checkPaymentStatus)
clearInterval(checkStatus)
}
}, 1000)
}, 2000)
</script>
</body>
Expand Down
Loading

0 comments on commit aea325e

Please sign in to comment.