@flopay/node 1.10.6 → 1.11.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.
Files changed (2) hide show
  1. package/README.md +1 -2
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -49,7 +49,7 @@ Type the setup request body with `CreateCardSetupSessionRequest` from `@flopay/s
49
49
 
50
50
  - `country`: the ISO 3166-1 alpha-2 country the card will be used in.
51
51
  - `currency`: the three-letter currency later payments will be charged in. A supplied `currency` becomes the setup session's currency.
52
- - `futureUse`: `'on_session'` or `'off_session'` (`CardSetupFutureUse`). Send `'on_session'` only when the card will be charged only while the customer is present. For cards charged without the customer present, including cards used both ways, leave it out or send `'off_session'`.
52
+ - `futureUse`: **deprecated** (`CardSetupFutureUse`, `'on_session'` or `'off_session'`). Future use is platform policy: the billing API sets every saved method up `'off_session'` and ignores this value. It is still accepted so existing requests keep working; leave it out of new code.
53
53
 
54
54
  The context needs billing API v1.9.48 or later. Older billing APIs silently ignore it and set the card up exactly as before. Send values as you hold them: the billing API trims and uppercases `country` and `currency`, validates all three fields, and rejects an invalid value with a `400`. The context describes the transaction and never selects a gateway; the billing API alone decides which gateway verifies the card.
55
55
 
@@ -139,7 +139,6 @@ export async function createCardSetupSession(post: AuthenticatedPost, userId: st
139
139
  userId,
140
140
  country: 'GB',
141
141
  currency: 'GBP',
142
- futureUse: 'off_session',
143
142
  };
144
143
  const { data } = await post('/v1/checkouts/sessions/setup', request);
145
144
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flopay/node",
3
- "version": "1.10.6",
3
+ "version": "1.11.1",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "publishConfig": {
@@ -27,7 +27,7 @@
27
27
  ],
28
28
  "dependencies": {
29
29
  "stripe": "^22.2.1",
30
- "@flopay/shared": "1.10.6"
30
+ "@flopay/shared": "1.11.1"
31
31
  },
32
32
  "devDependencies": {
33
33
  "tsup": "^8.3.0",