Skip to content
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

refactor: Typescript, ESM y Async Await #46

Open
wants to merge 26 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
62e0508
feat: Translate most of the lib to Typescript
ChrisGV04 May 8, 2024
1d4e0a9
chore: Add TODO to delete test code
ChrisGV04 May 8, 2024
97000cc
chore: Remove build from linter
ChrisGV04 May 8, 2024
c8d7d22
feat: Compile to ES2018 for async/await
ChrisGV04 May 8, 2024
7c23a2f
feat: Add customer endpoints
ChrisGV04 May 8, 2024
44d6059
fix: Use stores request for stores endpoint
ChrisGV04 May 8, 2024
22a78fb
feat: Add Checkout endpoints
ChrisGV04 May 8, 2024
a634ea0
chore: Simplify the types
ChrisGV04 May 8, 2024
f364890
feat: Implement vitest for testing
ChrisGV04 May 8, 2024
c34c7fd
tests: Add SDK tests
ChrisGV04 May 9, 2024
da4d997
chore: Add placeholder test env example
ChrisGV04 May 9, 2024
4f2cb69
tests: Add Colombia-specific tests
ChrisGV04 May 9, 2024
ca9088b
tests: Add Peru-specific tests
ChrisGV04 May 9, 2024
7d7d317
chore: Remove old libraries
ChrisGV04 May 9, 2024
df48a19
feat: Improve checkout and error types
ChrisGV04 May 9, 2024
0a770ab
refactor: Rename default test to mexico
ChrisGV04 May 9, 2024
55365a7
feat: Improve types
ChrisGV04 May 9, 2024
251bdc0
docs: Update README with new implementation
ChrisGV04 May 10, 2024
4f79116
refactor: Rename OpenPay to Openpay
ChrisGV04 May 10, 2024
15a2cc3
chore: Complete TODOs
ChrisGV04 May 10, 2024
9af72b1
feat: Allow changing instance options
ChrisGV04 May 10, 2024
fa34328
docs: Add contribution guide to README
ChrisGV04 May 10, 2024
9db7c63
docs: Fix typos on README
ChrisGV04 May 10, 2024
63e2c47
docs: Add build step to tests on README
ChrisGV04 May 10, 2024
e6b668b
feat: Add new clientIP required field
ChrisGV04 Nov 22, 2024
cd9c5d1
chore: Update dependencies
ChrisGV04 Nov 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
OPENPAY_MERCHANT_ID = "yourmarchantid"
OPENPAY_PRIVATE_KEY = "sk_yourprivatekey"
OPENPAY_DEVICE_SESSION_ID = "session_id_for_testing_charges"
OPENPAY_WEBHOOK_TEST_URL = "https://webhook.site/CREATE-YOUR-TOKEN"
29 changes: 25 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
/npm-debug.log
.settings/org.eclipse.wst.jsdt.ui.superType.container
.settings/org.eclipse.wst.jsdt.ui.superType.name
package-lock.json
dist
dist-ssr
*.local
*.tgz
*.zip
.env
.env.testing

# Editor directories and files
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
122 changes: 0 additions & 122 deletions .jshintrc

This file was deleted.

18 changes: 0 additions & 18 deletions .project

This file was deleted.

5 changes: 0 additions & 5 deletions .travis.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["biomejs.biome"]
}
8 changes: 8 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"[typescript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[json]": {
"editor.defaultFormatter": "biomejs.biome"
}
}
Loading