#ramy-api-version-python
1 messages · Page 1 of 1 (latest)
sure
2 requests
{
"application_fee_amount": "56",
"currency": "aud",
"off_session": "True",
"payment_method": "pm_1OWBXnIfd3b13usYtjwwYwtV",
"confirm": "True",
"amount": "2800",
"payment_method_types": {
"0": "card"
}
}
{
"application_fee_amount": "56",
"currency": "aud",
"off_session": "True",
"payment_method": "pm_1OWBYKIfd3b13usYmtu8teyp",
"confirm": "True",
"amount": "2800",
"payment_method_types": {
"0": "card"
}
response one has charges list and other hasn't
why?
Could you please share the Request ID req_xxx? https://support.stripe.com/questions/finding-the-id-for-an-api-request
req_3WyrEH0rBRRkqH
req_yKSlhhDHIERHT4
The difference is in the Stripe API version:
- in version
2020-08-27Stripe provided a list of charges. - in version
2023-10-16justlatest_chargeas ID, to speed up the request.
is it related to how the user got connected ?
or according to what which version is used in the payment ?
i don't understand
stripe.PaymentIntent.create
Are these 2 calls come from 2 different apps?
no
same app
same app same code
Did you upgrade the Stripe version on the Connected account?
no - all user are still connected on the same account if this what u r asking
Something must be setting the Stripe version on the request. Could you please share the code that makes the request?
sure - min
👋 taking over as vanya needs to step away soon
Looking at the requests you shared, it seems like your code sets the API version explicitly
payment_intent = stripe.PaymentIntent.create(
amount=int(chargeAmount),
currency=chargeCurrency,
payment_method=payment_method_id,
payment_method_types=['card'],
stripe_account=admin_stripe_account_id,
application_fee_amount=int(prepared_system_amount),
off_session=True,
confirm=True
)
You likely have stripe.api_version = SOME_VERSION in your code
ramy-api-version-python
stripe.api_version = "2020-08-27"
Yes, but the other API call was made with that line set to 2023-10-16
if we didn't add API version on direct charges - what will happen ?
If you don't set the version explicitly then the API would use account's default API version
u mean client account?
Default API version on the Platform account
sorry something i can't get :
how it is different version when the platform account is the same ?
how it's in some charges it is ver 2020-08-27 and other charges it's ver 2023-10-16