#robcoursera-sources-achCT
1 messages · Page 1 of 1 (latest)
@trail pilot hello! I'm taking over, what do you need help with exactly? Like right now you shared some code but nothing else. What's the problem?
@trail pilot friendly bump, can you clarify what you need help with?
hey sorry
I shared more context straight after the message
then someone created this thread without the context
I will copy and paste it in again
However this is giving me an error: com.stripe.exception.InvalidRequestException: Received unknown parameters: owner, receiver, currency, type, flow; code: parameter_unknown; request-id: req_1Dad35pFDwtsOU
okay where do those instructions come from in the first place? I'm confused. Sorry you've been asking questions regularly about ACH Credit Transfers and really advanced flow so it's not easy to follo
@trail pilot ^
Haha no worries!
So for context, I want to prevent the email that is sent to the customer upon refunding an ACH Credit payment
I was told this is possible by setting source.receiver.refund_attributes_method of the Source to manual
When I tried to do this, I couldn't see a way to actually update the source through the API
I was then told it's not possible, and that I would have to create a brand new source with this attribute
So that's where I am now, failing to do so lol
catching up here one sce
👍
I don't really understand why you would create a new source? Which doc are you following and who were you talking to before?
That was me, but there was some context lacking
So the question is, how do I change that attribute programmatically
source.receiver.refund_attributes_method
@narrow depot do you know why you recommended a new source?
If i recall at the time is was to set up a Source differently but I'm not too sure of my recollection
Yes, as I mentioned above, it was because you did not think it was possible to "change" that value of an existing source, you said I had to create a new one
and now I am having trouble creating a new one as per your suggestion
I'm sorry, I'll prefix this by saying: ACH Credit Transfer is mostly undocumented and you're touching features we almost never get asked about
Let's start from step 1: can you try updating an existing Source in Test mode and share the code + the error?
No problem I understand, although I have given all relevant information already. As I stated above, there is no way to update this attribute on a source through your APIs (I am using the Java SDK)
So there is nothing to "try" here regarding updating the source
(hence the suggestion of creating a new source, which is not working)
Does that make sense?
ignore java for a sec
what exact error are you getting when you update that specific property in the API? you can use curl for example to try it quickly
(remember, that is not even documented publicly)
Well I can't ignore java because that's the integration I am using? lol
Sure sorry. I just mean, temporarily for an hour, while you and I try to debug this for you
stripe-java is statically typed, and only has publicly documented parameters/properties
Ah okay, I didn't understand
I'm not sure what the URL would be for this API, do you?
Okay, and what would the parameter be to update source.receiver.refund_attributes_method?
ah sorry I assumed you understood how our API and parameter naming works. Java maps exactly the API structure
Aren't the params structured like nested arrays?
yes so receiver[refund_attributes_method] is how the param would be passed in curl
I get
{
"error": {
"code": "parameter_unknown",
"doc_url": "https://stripe.com/docs/error-codes/parameter-unknown",
"message": "Received unknown parameter: receiver",
"param": "receiver",
"type": "invalid_request_error"
}
}
can you share the exact request id the req_123 this is what matters
(I'm also trying to understand our codebase around this to grasp when that can/can't be set sorry it's slow going)
Example: $source = $stripe->sources->create([ 'type' => 'ach_credit_transfer', 'currency' => 'usd', 'owner' => [ 'email' => 'jenny.rosen@example.com' ], 'receiver' => [ 'refund_attributes_method' => 'manual', ], ]); this works fine for me on creation.
Now trying update
I have to log off for the day, so I'd imagine this will be archived. I will touch base on Monday, thanks for the help!