🚧 This project is currently in active development. A sandbox environment will be made available soon for testing and exploration. Stay tuned!
Version: 0.3.0 | Platform: iOS 15.0+ / Android API 24+ | React Native: >= 0.71
platform :ios, '15.0' (or higher) in ios/Podfile.ios/YourApp.xcworkspace in Xcode and build.minSdkVersion 24, compileSdkVersion 34, Java 17.android/build.gradle:MainApplication or AndroidManifest.xml needed./create-session endpoint with your secret api_key:{ "session_id": "abc123def456" }| Requirement | Version |
|---|---|
| Node.js | >= 16 |
| React Native | >= 0.71 |
| iOS | 15.0+ |
| Android | API 24+ (Android 7.0) |
| Xcode | 14.0+ |
| CocoaPods | Latest |
| Credential | Description |
|---|---|
api_key | Secret key for API authentication |
merchant_id | Your merchant identifier |
publicKey | RSA public key (PEM) for card encryption (optional but recommended) |
setup(options?)| Parameter | Type | Description |
|---|---|---|
baseUrl | string | API base URL (default: https://ws5-payments.datmanpay.com) |
apiKey | string | Secret key for API authentication |
publicKey | string | RSA public key (PEM) for card encryption |
brandColorHex | string | Brand color hex (e.g., #0A84FF) for Pay button |
configure(sessionId)/create-session call.open()/get-session response controls SDK behavior:| Field | Type | Default | Effect |
|---|---|---|---|
billing_address_enabled | boolean | true | Show/hide billing address form |
amex_enabled | boolean | true | Accept Amex cards |
discover_enabled | boolean | true | Accept Discover cards |
diners_enabled | boolean | true | Accept Diners Club cards |
avs.house_number | string | — | Pre-fill address when "Same as delivery" is on |
avs.postcode | string | — | Pre-fill postcode when "Same as delivery" is on |
npx pod-install.xcworkspace (not .xcodeproj)grep RNDatman ios/Podfile.lock-ObjC is in Other Linker Flagsnpx react-native config — package should be listedcd android && ./gradlew clean && cd .. && npx react-native run-androidresult.message and result.raw for error details from the gateway.