react-native-tpay 1.3.9 → 1.3.10

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.
@@ -21,6 +21,8 @@ fun String.isEmailValid(): Boolean {
21
21
  }
22
22
  }
23
23
 
24
+ fun String.isEmailValidForScreenless(): Boolean = true
25
+
24
26
  fun String.toEnvironment(): Environment {
25
27
  return when (this) {
26
28
  Environment.PRODUCTION.name.lowercase() -> Environment.PRODUCTION
@@ -60,7 +60,7 @@ open class ScreenlessPayment(json: String) : JSONObject(json) {
60
60
  throw ValidationException(ValidationMessages.PAYER_EMAIL_INVALID)
61
61
  }
62
62
  notifications?.let {
63
- if (!notifications.notificationEmail.isEmailValid()) {
63
+ if (!notifications.notificationEmail.isEmailValidForScreenless()) {
64
64
  throw ValidationException(ValidationMessages.NOTIFICATION_EMAIL_INVALID)
65
65
  }
66
66
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-tpay",
3
- "version": "1.3.9",
3
+ "version": "1.3.10",
4
4
  "description": "The Tpay SDK empowers your app to seamlessly integrate Tpay’s payment functionalities, providing a comprehensive and developer-friendly solution for managing payments.",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",