@spring-payments/payments-react-native 0.1.0 → 0.1.1
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/README.md +11 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ For Expo SDK 57 / React Native 0.86:
|
|
|
19
19
|
npx expo install @spring-payments/payments-react-native @stripe/stripe-react-native@0.64.0
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
The published npm package is the only supported partner distribution. Partners do not need access to Spring's private repository and should not copy source or install supplied tarballs. Use the compatible Stripe version above rather than assuming an arbitrary latest version is supported. Browser apps must likewise install `@spring-payments/payments-js` from npm; direct Gateway module imports and no-build integrations are not supported.
|
|
23
23
|
|
|
24
24
|
Configure your dedicated return scheme, then create/rebuild your development app:
|
|
25
25
|
|
|
@@ -135,11 +135,17 @@ The dedicated return URL must be `<your-scheme>://safepay` in this SDK version:
|
|
|
135
135
|
|
|
136
136
|
After process death there is no retained JS promise/session. Restore partner login, reconcile/replay the operation through `createSession`, and let Spring determine completion; URL arrival is not payment success. Partners remain responsible for consent to future off-session charges and prompting absent customers to return.
|
|
137
137
|
|
|
138
|
+
## Spring-hosted payment recovery (preferred)
|
|
139
|
+
|
|
140
|
+
For a customer returning to finish an existing payment, Spring's hosted browser recovery page remains the preferred option. This is a Spring-owned application, not a hosted SDK distribution. Embedded native card entry and in-app authentication still use this npm package.
|
|
141
|
+
|
|
142
|
+
Send the customer to your authenticated web handoff page. Its backend authorizes the original payment and creates a **web** authentication session using the Gateway origin and `{gatewayOrigin}/payment-components/recover` as the return URL. The handoff submits `sessionId` and `sessionToken` in a browser form POST body to that page. Never put capabilities in a deep link, query string or fragment, and never send a native session to the web recovery page. A browser redirect or return to the app is not proof of payment; reconcile the original payment through your backend. Partners choosing in-app recovery instead can use `authenticatePayment(paymentId)` as described above.
|
|
143
|
+
|
|
138
144
|
## Verification
|
|
139
145
|
|
|
140
146
|
`npm test` compiles against the actual RN/Stripe types and tests backend-confirmed completion, bounded pending, unknown submission/dismissal, scope mismatch, safe errors, replay/concurrent operations and plugin behavior. `npm pack` verifies the distributable includes compiled JS/types and the Expo plugin. Before release, verify fresh Expo installation and native builds on both platforms, actual card-only PaymentSheet (no saved cards/Link/wallets), issuer 3DS success/cancellation, app switching/process death, accessibility/text scaling and real Gateway webhook timing.
|
|
141
147
|
|
|
142
|
-
|
|
148
|
+
The 0.1.x releases are initial integration releases, not certification of a live payment flow. iOS simulator Release build and styled/unstyled UI checks have passed; actual PaymentSheet/3DS with a configured backend and Android native verification remain outstanding. Complete those checks before a production integration.
|
|
143
149
|
|
|
144
150
|
## License
|
|
145
151
|
|
|
@@ -147,7 +153,7 @@ MIT; see [LICENSE](./LICENSE). This license covers the Spring code in this SDK p
|
|
|
147
153
|
|
|
148
154
|
## Maintaining and publishing (Spring maintainers)
|
|
149
155
|
|
|
150
|
-
Source of truth: `packages/spring-payments-react-native/` in the private `ktechgit/spring-payments` repository. Edit `src/`, `app.plugin.js` and this README here. `dist/` is generated; do not edit it. The repository's `examples/embedded-partner-expo/` is the integration consumer, not the package source.
|
|
156
|
+
Source of truth: `packages/spring-payments-react-native/` in the private `ktechgit/spring-payments` repository. Edit `src/`, `app.plugin.js` and this README here. `dist/` is generated; do not edit it. The repository's `examples/embedded-partner-expo/` is the integration consumer, not the package source. Local tarballs below are for maintainer release validation only, not an alternative partner installation route.
|
|
151
157
|
|
|
152
158
|
From this directory:
|
|
153
159
|
|
|
@@ -165,8 +171,8 @@ For subsequent releases, choose a semantic version and run `npm version patch --
|
|
|
165
171
|
Authenticate interactively with `npm login --registry=https://registry.npmjs.org/`; confirm the account with `npm whoami` and its publish access to `@spring-payments`. Keep npm credentials in the maintainer/build environment only. With release authorization, publish the exact inspected tarball (replace the version in its filename):
|
|
166
172
|
|
|
167
173
|
```sh
|
|
168
|
-
npm publish ./spring-payments-payments-react-native-0.1.
|
|
169
|
-
npm view @spring-payments/payments-react-native@0.1.
|
|
174
|
+
npm publish ./spring-payments-payments-react-native-0.1.1.tgz --access public --registry=https://registry.npmjs.org/
|
|
175
|
+
npm view @spring-payments/payments-react-native@0.1.1 version license dist.integrity --registry=https://registry.npmjs.org/
|
|
170
176
|
```
|
|
171
177
|
|
|
172
178
|
For a preview release, use a prerelease version and `--tag next`; do not move `latest` inadvertently. After registry verification, install the published version in the Expo demo, regenerate its lockfile, run its typecheck and Expo configuration check, and update partner installation instructions. An npm release does not deploy Gateway configuration, authorize a native application or complete device/processor certification.
|