diff --git a/tests/types/src/valid.ts b/tests/types/src/valid.ts index 37b9a06..103b8c0 100644 --- a/tests/types/src/valid.ts +++ b/tests/types/src/valid.ts @@ -2745,7 +2745,17 @@ stripe .confirmCashappSetup('', { return_url: window.location.href, }) - .then((result: {setupIntent?: SetupIntent; error?: StripeError}) => null); + .then((result: {setupIntent?: SetupIntent; error?: StripeError}) => { + if ( + result.setupIntent?.next_action + ?.cashapp_handle_redirect_or_display_qr_code + ) { + console.log( + result.setupIntent?.next_action + ?.cashapp_handle_redirect_or_display_qr_code.hosted_instructions_url + ); + } + }); stripe .confirmCashappSetup( @@ -2854,7 +2864,13 @@ stripe stripe .verifyMicrodepositsForSetup('', {amounts: [32, 45]}) - .then((result: {setupIntent?: SetupIntent; error?: StripeError}) => null); + .then((result: {setupIntent?: SetupIntent; error?: StripeError}) => { + if (result.setupIntent?.next_action?.verify_with_microdeposits) { + console.log( + result.setupIntent?.next_action?.verify_with_microdeposits.arrival_date + ); + } + }); stripe .verifyMicrodepositsForSetup('', {