#harshil-ahir_code
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/1286545412173332512
đ 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.
- harshil-ahir_code, 13 hours ago, 124 messages
- harshil-ahir_code, 16 hours ago, 10 messages
hello! I see bismarck mentioned that you should be passing in mandate data : https://docs.stripe.com/api/setup_intents/create#create_setup_intent-mandate_data-customer_acceptance when creating the SetupIntent.
Going back a couple of steps, is there a reason why you're not creating a SetupIntent with payment_method_types: ['us_bank_account'] and then using the Payment Element to collect the payment method details? In that way you won't have to explicitly pass in the mandate data via the API
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
But thats the issue how can i pass tha mandate data
But if i dont pass the mandate data then i am getting Null errror of mandate data
what do you mean by how to pass the mandate data? What have you tried?
the API specs seem fairly clear to me - is there something specifically that you don't understand?
Yeah i am getting error on these api that mandate data is null
So how can i pass tha t
what's your code snippet where you're passing in the mandate data?
in the initial code snippet that you shared, you aren't passing in any mandate data at all
right now i am not passing mandate data so i am getting error of mandate data
well, then why don't you pass in mandate data?
Yeah so i am getting mandate data null error
How can i pass it but
to be clear, we're not freelancers that you pay to write your code for you. You are the developer here, and you need to write and own the code here.
I'm still not sure what specifically you mean by how can I pass it when we've been repeatedly pointing you to our API specifications which mentions what are the parameters / values to input. If you're looking for our Java docs, they're here : https://stripe.dev/stripe-java/index.html
package index
Yeah i am writing the code but i am not getting how because there is no mandate data is available in documentation
what do you mean by there is no mandate data available in documentation? Do you not see the above in our API specs?
Please share clear details of what you're doing right now and what you expect to see. We cannot help without any details.
When you're asking for help, think of it from the perspective of what details would you need if someone went to you for help.
SetupIntentCreateParams params = SetupIntentCreateParams.builder()
.addPaymentMethodType("us_bank_account")
.setCustomer(customer.getId())
.setPaymentMethod(paymentMethod.getId())
.setConfirm(true)
.setMandateData(
SetupIntentCreateParams.MandateData.builder()
.setNotificationMethod(SetupIntentCreateParams.MandateData.CustomerAcceptance.Online)
.build()
)
.build();
i am passing mandatedata like these and i am getting error in line seNotificationMethod which is not showing any error type but in IDE its showing error
what's the error in the IDE that you're seeing?
also, you should be passing in IP address and user agent for online mandates, I don't see that anywhere in your code snippet
Its giving no suggestion
but i am thinking of another way like from dashboard payment if i create a token and add attach that token to the customer and i can verify it from dashboard will it work
like if the credentials are wrong then token can't generate so i will show an error for that
and the admin can directly verify through stripe dashboard what you say will it work
do you mean the IDE is not giving any code suggestions for mandateData related methods?
Yes
But can you tell me something related to my 2 idea where admin ka verify by sending small amount through dashboard
what version of the stripe-java SDK are you using?
but i am thinking of another way like from dashboard payment if i create a token and add attach that token to the customer and i can verify it from dashboard will it work
like if the credentials are wrong then token can't generate so i will show an error for that
and the admin can directly verify through stripe dashboard what you say will it work
I don't know off the top of my head if that will work. We mainly handle API integrations here. You can test it out and see if it works
25.8.0
Its verifying every account wether its closed or didnt have payment
going back to your code, is this what you're seeing?
Yes
That's totally normal. It's expecting a mandateData object which you should create and pass in : https://stripe.dev/stripe-java/com/stripe/param/SetupIntentCreateParams.MandateData.html
Also, there's no such method called .setNotificationMethod for MandateData - where did you even get this method from?
declaration: package: com.stripe.param, class: SetupIntentCreateParams, class: MandateData
I found a online code for notificationMethod