Repository navigation
Bug/hubtel gateway #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "name": "@noelzappy/voltax", | ||
| "version": "0.2.0", | ||
| "version": "0.2.1", | ||
| "description": "Voltax Node.js SDK for unified payment gateway integration", | ||
| "license": "MIT", | ||
| "author": "https://github.com/noelzappy", | ||
|
|
@@ -32,7 +32,10 @@ | |
| "typecheck": "tsc --noEmit", | ||
| "test": "vitest run", | ||
| "lint": "eslint . --fix", | ||
| "format": "prettier --write ." | ||
| "format": "prettier --write .", | ||
| "release:patch": "npm version patch --no-git-tag-version && git add package.json && git commit -m \"chore: release v$(node -p \"require('./package.json').version\")\" && git tag node-v$(node -p \"require('./package.json').version\") && git push && git push origin node-v$(node -p \"require('./package.json').version\")", | ||
| "release:minor": "npm version minor --no-git-tag-version && git add package.json && git commit -m \"chore: release v$(node -p \"require('./package.json').version\")\" && git tag node-v$(node -p \"require('./package.json').version\") && git push && git push origin node-v$(node -p \"require('./package.json').version\")", | ||
| "release:major": "npm version major --no-git-tag-version && git add package.json && git commit -m \"chore: release v$(node -p \"require('./package.json').version\")\" && git tag node-v$(node -p \"require('./package.json').version\") && git push && git push origin node-v$(node -p \"require('./package.json').version\")" | ||
|
Comment on lines
+36
to
+38
|
||
| }, | ||
| "dependencies": { | ||
| "axios": "^1.6.0", | ||
|
|
@@ -54,4 +57,4 @@ | |
| "publishConfig": { | ||
| "access": "public" | ||
| } | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -122,7 +122,7 @@ export class HubtelAdapter implements VoltaxProvider<HubtelPaymentDTO> { | |
|
|
||
| try { | ||
| const { data } = await axios.get<HubtelAPIResponse<HubtelTransaction>>( | ||
| `https://api-txnstatus.hubtel.com/transactions/${this.merchantAccount}/status`, | ||
| `https://api-txnstatus.hubtel.com/transactions/${this.merchantAccount}/status?clientReference=${reference}`, | ||
| { | ||
|
Comment on lines
124
to
126
|
||
| headers: { Authorization: this.authHeader }, | ||
| }, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
npm version ...will also updatepackage-lock.jsonwhen it exists (it does in this package), but this script only stagespackage.json. That leaves the lockfile modified but uncommitted after running the release script. Consider staging/committingpackage-lock.jsontoo, or configuring the command to avoid touching the lockfile.