mirror of
https://github.com/wshobson/agents.git
synced 2026-03-18 09:37:15 +00:00
Remove PMTs param
This commit is contained in:
@@ -79,7 +79,6 @@ stripe.api_key = "sk_test_..."
|
|||||||
|
|
||||||
# Create a checkout session
|
# Create a checkout session
|
||||||
session = stripe.checkout.Session.create(
|
session = stripe.checkout.Session.create(
|
||||||
payment_method_types=['card'],
|
|
||||||
line_items=[{
|
line_items=[{
|
||||||
'price_data': {
|
'price_data': {
|
||||||
'currency': 'usd',
|
'currency': 'usd',
|
||||||
@@ -431,8 +430,7 @@ def test_payment_flow():
|
|||||||
intent = stripe.PaymentIntent.create(
|
intent = stripe.PaymentIntent.create(
|
||||||
amount=1000,
|
amount=1000,
|
||||||
currency='usd',
|
currency='usd',
|
||||||
customer=customer.id,
|
customer=customer.id
|
||||||
payment_method_types=['card']
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# Confirm with test card
|
# Confirm with test card
|
||||||
|
|||||||
Reference in New Issue
Block a user