Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 618 Bytes

File metadata and controls

27 lines (18 loc) · 618 Bytes

create

Create a test Confirmation Token

Creates a test mode Confirmation Token server side for your integration tests.

API Endpoint: POST /v1/test_helpers/confirmation_tokens

Synchronous Client

from os import getenv
from sideko_stripe import Stripe

client = Stripe(token=getenv("API_TOKEN"))
res = client.test_helper.confirmation_token.create()

Asynchronous Client

from os import getenv
from sideko_stripe import AsyncStripe

client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.test_helper.confirmation_token.create()