@school24/paymentjs-rn 1.3.0 → 1.4.0

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.
package/dist/PaymentJS.js CHANGED
@@ -37,7 +37,7 @@ const react_1 = __importStar(require("react"));
37
37
  const react_native_1 = require("react-native");
38
38
  const react_native_webview_1 = require("react-native-webview");
39
39
  const PaymentJS = (props) => {
40
- const { uri: customUri, onSuccess, onFailure, style, environment = "test", shopperReference = "USER123", amount = 100, currency = "AUD", storePaymentMethod = true, baseUrl = "https://your-domain.com/payment.html", } = props;
40
+ const { uri: customUri, onSuccess, onFailure, style, environment = "test", shopperReference = "USER123", amount = 100, currency = "AUD", storePaymentMethod = true, baseUrl = "https://www.school24.net.au/valpay-gateway", } = props;
41
41
  // Auto-build URI with query params if customUri not provided
42
42
  const finalUri = (0, react_1.useMemo)(() => {
43
43
  if (customUri)
package/dist/types.d.ts CHANGED
@@ -6,9 +6,6 @@ export interface PaymentJSMessage {
6
6
  payload: any;
7
7
  }
8
8
  export interface PaymentJSProps {
9
- /**
10
- * Full URL to the payment HTML page (optional if using auto-built URI)
11
- */
12
9
  uri?: string;
13
10
  /**
14
11
  * Called when payment completes successfully
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@school24/paymentjs-rn",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "React Native WebView wrapper for PaymentJS (Adyen)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",