@paynext/sdk 0.0.35 → 0.0.37

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 +2 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -55,11 +55,11 @@ export const CheckoutComponent: FC<Readonly<IProps> = (props) => {
55
55
  locale: 'en',
56
56
  onCheckoutComplete: (result: PaymentResult) => {
57
57
  // Handle successful payment
58
- console.log('Payment completed:', result.paymentMethod, result.transactionId)
58
+ console.log('Payment completed:', result)
59
59
  },
60
60
  onCheckoutFail: (error: Error) => {
61
61
  // Handle payment failure
62
- console.error('Payment failed:', error.message)
62
+ console.error('Payment failed:', error)
63
63
  }
64
64
  })
65
65
  }, [clientToken])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paynext/sdk",
3
- "version": "0.0.35",
3
+ "version": "0.0.37",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",