List a Customer's PaymentMethods
Returns a list of PaymentMethods for a given Customer
API Endpoint: GET /v1/customers/{customer}/payment_methods
from os import getenv
from sideko_stripe import Stripe
client = Stripe(token=getenv("API_TOKEN"))
res = client.customer.payment_method.list(customer="string")from os import getenv
from sideko_stripe import AsyncStripe
client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.customer.payment_method.list(customer="string")Retrieve a Customer's PaymentMethod
Retrieves a PaymentMethod object for a given Customer.
API Endpoint: GET /v1/customers/{customer}/payment_methods/{payment_method}
from os import getenv
from sideko_stripe import Stripe
client = Stripe(token=getenv("API_TOKEN"))
res = client.customer.payment_method.get(customer="string", payment_method="string")from os import getenv
from sideko_stripe import AsyncStripe
client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.customer.payment_method.get(
customer="string", payment_method="string"
)