Skip to content

Commit

Permalink
Update collectData response to return as a CollectDataResultType (#849)
Browse files Browse the repository at this point in the history
* Update collectData response to return as a CollectDataResultType

* Lint
  • Loading branch information
mindy-stripe authored Nov 14, 2024
1 parent 3b6998f commit f9af41a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,9 @@ export async function collectData(
return Logger.traceSdkMethod(async () => {
try {
const response = await StripeTerminalSdk.collectData(params);
return response;
return {
collectedData: response,
};
} catch (error) {
return {
error: error as any,
Expand Down

0 comments on commit f9af41a

Please sign in to comment.