Skip to content

Latest commit

 

History

History
110 lines (74 loc) · 2.15 KB

File metadata and controls

110 lines (74 loc) · 2.15 KB

list

List all payment links

Returns a list of your payment links.

API Endpoint: GET /v1/payment_links

Synchronous Client

from os import getenv
from sideko_stripe import Stripe

client = Stripe(token=getenv("API_TOKEN"))
res = client.payment_link.list()

Asynchronous Client

from os import getenv
from sideko_stripe import AsyncStripe

client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.payment_link.list()

get

Retrieve payment link

Retrieve a payment link.

API Endpoint: GET /v1/payment_links/{payment_link}

Synchronous Client

from os import getenv
from sideko_stripe import Stripe

client = Stripe(token=getenv("API_TOKEN"))
res = client.payment_link.get(payment_link="string")

Asynchronous Client

from os import getenv
from sideko_stripe import AsyncStripe

client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.payment_link.get(payment_link="string")

create

Create a payment link

Creates a payment link.

API Endpoint: POST /v1/payment_links

Synchronous Client

from os import getenv
from sideko_stripe import Stripe

client = Stripe(token=getenv("API_TOKEN"))
res = client.payment_link.create(line_items=[{"price": "string", "quantity": 123}])

Asynchronous Client

from os import getenv
from sideko_stripe import AsyncStripe

client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.payment_link.create(
    line_items=[{"price": "string", "quantity": 123}]
)

update

Update a payment link

Updates a payment link.

API Endpoint: POST /v1/payment_links/{payment_link}

Synchronous Client

from os import getenv
from sideko_stripe import Stripe

client = Stripe(token=getenv("API_TOKEN"))
res = client.payment_link.update(payment_link="string")

Asynchronous Client

from os import getenv
from sideko_stripe import AsyncStripe

client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.payment_link.update(payment_link="string")