#robcoursera-sources-achCT

1 messages · Page 1 of 1 (latest)

native hamlet
#

hello, looking

toxic wadi
#

@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?

toxic wadi
toxic wadi
#

@trail pilot friendly bump, can you clarify what you need help with?

trail pilot
#

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

toxic wadi
#

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 ^

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

native hamlet
#

catching up here one sce

trail pilot
#

👍

toxic wadi
#

I don't really understand why you would create a new source? Which doc are you following and who were you talking to before?

narrow depot
#

That was me, but there was some context lacking

trail pilot
#

So the question is, how do I change that attribute programmatically

#

source.receiver.refund_attributes_method

toxic wadi
#

@narrow depot do you know why you recommended a new source?

narrow depot
#

If i recall at the time is was to set up a Source differently but I'm not too sure of my recollection

trail pilot
#

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

toxic wadi
#

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?

trail pilot
#

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?

toxic wadi
#

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)

trail pilot
#

Well I can't ignore java because that's the integration I am using? lol

toxic wadi
#

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

trail pilot
#

Ah okay, I didn't understand

#

I'm not sure what the URL would be for this API, do you?

toxic wadi
trail pilot
#

Okay, and what would the parameter be to update source.receiver.refund_attributes_method?

toxic wadi
#

ah sorry I assumed you understood how our API and parameter naming works. Java maps exactly the API structure

trail pilot
#

Aren't the params structured like nested arrays?

toxic wadi
#

yes so receiver[refund_attributes_method] is how the param would be passed in curl

trail pilot
#

I get

toxic wadi
#

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

trail pilot
#

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!

toxic wadi
#

@trail pilot you should talk to our support team please

#

Discord is the wrong place to get further help unfortunately you are asking about really advanced flows that are undocumented