POST
stripe_payment_intents_create.py
from charter.packs import stripe
result = await stripe.payment_intents_create.ainvoke({"amount": ..., "currency": ...})
Body
| Field | Type | Description |
|---|---|---|
amount * | integer | The amount to collect, in the smallest currency unit. Stripe enforces a minimum of roughly fifty cents. Cents, not dollars: $15.00 is 1500, and 15 collects fifteen cents. Multiply a decimal amount by 100. ≥ 1 |
currency * | string | Three-letter lowercase ISO currency code. |
customer | string | The customer to charge. A payment method attached to a different customer cannot be used. |
paymentMethod | string | The payment method to charge. If it belongs to a customer, name that customer too. |
captureMethod | CaptureMethod | ’manual’ authorises the card and holds the funds for a later capture. Absent, Stripe captures as soon as the customer authorises. |
confirm | boolean | Attempt the payment immediately rather than leaving the intent for the client to confirm. Needs either return_url or automatic_payment_methods with allow_redirects='never', since the account’s enabled payment methods may include ones that send the customer off-site. |
automaticPaymentMethods | AutomaticPaymentMethods | Which payment methods to offer. Send {'enabled': true, 'allow_redirects': 'never'} to confirm a payment here without a return URL. |
returnUrl | string | Where to send the customer back to after a payment method that redirects. Required by a confirm that allows redirects. |
offSession | boolean | The customer is not present. Only meaningful alongside confirm. |
description | string | An internal note on the payment. |
receiptEmail | string | Email a receipt here. In live mode this sends regardless of your email settings. |
metadata | map of string | Set of key-value pairs attached to the payment. |