#k3davis_mandate-ids
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1296532001553256539
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- k3davis_api, 5 days ago, 9 messages
Hi ๐
You can see the mandate ID on the Charge object (which is what is returned in the webhook event) by looking in the payment_method_details.us_bank_account.mandate property. This is a defined property in the .NET SDK and you can see it here: https://github.com/stripe/stripe-dotnet/blob/master/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsUsBankAccount.cs#L49-L53
hm, can i get it from looking up the charge and expanding something or is it only available via the event
(the api docs don't seem to mention this property anywhere that i could find)
We list the mandate in the Charge object API reference doc here: https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-us_bank_account-mandate
wow ok. i didn't drill down far enough, obviously. my fault. thank you
No problem! It's why we're here. ๐
the docs also state that the mandate property is expandable, but it doesn't seem to accept that: req_oeBhxQf8hWxOaV
that is because you didn't specify the full path of the property
Since you are requesting a Charge object, you need to specify expand=['payment_method_details.us_bank_account.mandate] or the .NET equivalent.
ok, i'll give that a try
i'm sorry i;m still struggling with this, adding the full path to the expand allowed the request to succeed (thanks, i didn't know about that) but the returned object still has no mandate data.
i'm inspecting the SDK source and the mandate property doesn't seem to be there
public class ChargePaymentMethodDetailsUsBankAccount : StripeEntity<ChargePaymentMethodDetailsUsBankAccount>
{
public string AccountHolderType { get; set; }
public string AccountType { get; set; }
public string BankName { get; set; }
public string Fingerprint { get; set; }
public string Last4 { get; set; }
public string RoutingNumber { get; set; }
}
What version of our .NET SDK are you on?
looks like 43.13.0. too old? ๐
looks like it is a problem with our SDK being too old, looking at the current github source.
Yeah, looking in our changelog (https://github.com/stripe/stripe-dotnet/blob/master/CHANGELOG.md#43210---2024-03-28) it looks like we added support for this in 43.21.0
Since it's not a major version update, you would still be on the same API version
So, while you might want to look into updating to a more current version, you could update to 43.21.0 to get the mandate ID and then worry about a larger update later on
alrighty. updating the version is planned, but maybe we can make this interim step sooner.
i've wasted enough of your time, thank you for your patience ๐
It's not a waste. We're here to help! ๐