provider POST /v1/test_helpers/confirmation_tokens
@utdk/stripe /v1/test_helpers/confirmation_tokens
Create a test Confirmation Token
<p>Creates a test mode Confirmation Token server side for your integration tests.</p>

Try it

Authentication
Configure credentials for Stripe API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

posttesthelpersconfirmationtokens
POST/v1/test_helpers/confirmation_tokens
<p>Creates a test mode Confirmation Token server side for your integration tests.</p>

Input

Specifies which fields in the response should be expanded.

ID of an existing PaymentMethod.

If provided, this hash will be used to create a PaymentMethod.

Payment-method-specific configuration for this ConfirmationToken.

Return URL used to confirm the Intent.

Indicates that you intend to make future payments with this ConfirmationToken's payment method. The presence of this property will [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete.

Shipping information for this ConfirmationToken.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import stripe from '@utdk/stripe';

await stripe.posttesthelpersconfirmationtokens()