#mattwoberts
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
๐
Hmm OK , looks like I need to create a payment method, and use one of the test account numbers from here... https://stripe.com/docs/billing/subscriptions/bacs-debit#testing
Cool, I'll give that a go!
let me know if you need any more help
Hmm - am I being thick ... there doesn't seem to be a way to set the account number...
var paymentMethod = new PaymentMethod();
paymentMethod.Type = "bacs_debit";
paymentMethod.BacsDebit.SortCode = "108800";
// This isn't there --> paymentMethod.BacsDebit.AccountNumber =
Docs suggest it's there .. https://stripe.com/docs/api/payment_methods/create#create_payment_method-bacs_debit-account_number
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
is this .Net?
Yeah
let me check
k thanks
which version have you installed?
40.7.0
ok thanks
Looks like it might be missing from the .net api?
I think I can work around it with this paymentMethod.BacsDebit.RawJObject["account_number"] = accountNumber;
Oh i see the issue
you should use PaymentMethodBacsDebitOptions instead of PaymentMethodBacsDebit
Aha - yeah I get it - just spotted the same on the example in the docs (should read the manual more carefully!) Thanks!@