@tonder.io/rn-sdk 0.1.7-beta.DEV1799.f93aa5e → 0.1.7
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 +43 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1163,6 +1163,49 @@ The ENROLLMENT integration provides methods for handling full enrollment with bu
|
|
|
1163
1163
|
- saveCustomerCard: Tokenizes and saves the current card information.
|
|
1164
1164
|
- getCardSummary: Retrieves detailed information about a saved card using its Skyflow ID.
|
|
1165
1165
|
|
|
1166
|
+
<details>
|
|
1167
|
+
<summary>Input Interface</summary>
|
|
1168
|
+
|
|
1169
|
+
| Parameter | Type | Description |
|
|
1170
|
+
|-----------|--------|------------------------------------------------|
|
|
1171
|
+
| skyflowId | string | The Skyflow ID of the card to retrieve |
|
|
1172
|
+
|
|
1173
|
+
</details>
|
|
1174
|
+
|
|
1175
|
+
<details>
|
|
1176
|
+
<summary>Response Interface</summary>
|
|
1177
|
+
|
|
1178
|
+
**IBaseResponse<ICardsSummaryResponse>**
|
|
1179
|
+
|
|
1180
|
+
The response follows the base response pattern:
|
|
1181
|
+
|
|
1182
|
+
```typescript
|
|
1183
|
+
export type IBaseResponse<T> =
|
|
1184
|
+
| { response: ICardsSummaryResponse; error?: TonderError }
|
|
1185
|
+
| { response?: never; error: TonderError };
|
|
1186
|
+
```
|
|
1187
|
+
|
|
1188
|
+
**Success Response (ICardsSummaryResponse)**
|
|
1189
|
+
|
|
1190
|
+
| Property | Type | Description |
|
|
1191
|
+
|----------|--------|------------------------------------------------|
|
|
1192
|
+
| user_id | number | The ID of the user who owns the card |
|
|
1193
|
+
| card | object | Object containing the card fields |
|
|
1194
|
+
|
|
1195
|
+
**Card Fields (ICardSkyflowFields)**
|
|
1196
|
+
|
|
1197
|
+
| Property | Type | Description |
|
|
1198
|
+
|-------------------|--------|--------------------------------------------|
|
|
1199
|
+
| card_number | string | The masked card number |
|
|
1200
|
+
| expiration_month | string | The expiration month of the card |
|
|
1201
|
+
| expiration_year | string | The expiration year of the card |
|
|
1202
|
+
| skyflow_id | string | The unique Skyflow identifier for the card |
|
|
1203
|
+
| card_scheme | string | The card brand (e.g., Visa, Mastercard) |
|
|
1204
|
+
| cardholder_name | string | The name of the cardholder |
|
|
1205
|
+
|
|
1206
|
+
</details>
|
|
1207
|
+
|
|
1208
|
+
|
|
1166
1209
|
> **Note:** The saveCustomerCard It is only necessary when you want to control the enrollment button on your own.
|
|
1167
1210
|
|
|
1168
1211
|
> **Note:** For card methods, it is necessary to obtain and use your secure token when calling the create function.
|