@paynext/sdk 0.0.49 → 0.0.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +3 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # PayNext TypeScript SDK
1
+ # PayNext SDK
2
2
 
3
3
  TypeScript SDK for integrating PayNext payment processing with full type safety and multiple payment methods support.
4
4
 
@@ -23,9 +23,11 @@ await checkout.mount({
23
23
  apiVersion: '1.0.0'
24
24
  locale: 'en',
25
25
  onCheckoutComplete: (result: PaymentResult) => {
26
+ // Handle successful payment
26
27
  console.log('Payment successful!', result)
27
28
  },
28
29
  onCheckoutFail: (error: Error) => {
30
+ // Handle payment failure
29
31
  console.error('Payment failed:', error)
30
32
  }
31
33
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paynext/sdk",
3
- "version": "0.0.49",
3
+ "version": "0.0.50",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",