You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Got this error - response = { "status"=>422, "errorCode"=>"100", "message"=>"Required object 'amount' is not provided.",
"errorType"=>"validation" }
by hitting the AdyenClient.new.payments.refund(input1, input2)
How to reproduce
Steps to reproduce the behavior.
a) initializing first:
adyen_client = Adyen::Client.new.tap do |_adyen|
_adyen.api_key = "some value"
_adyen.env = :live
_adyen.live_url_prefix = "some value"
_adyen.checkout.version = 68
end
b) By hitting this adyen_client.payments.refund(input1, input2) where
input1 = {
'amount': {
'value': 456,
'currency': "USD"
},
'reference': "some value1",
'merchantAccount': "some value2"
}
input2 = {"paymentPspReference": "some value3"}
I got the above mentioned error. Please check . Is something missing here from my end in passing parameters?
Expected behavior
No idea about the response as hitting the API gives error.
Screenshots
Desktop (please complete the following information):
Describe the bug
Got this error - response = { "status"=>422, "errorCode"=>"100", "message"=>"Required object 'amount' is not provided.",
"errorType"=>"validation" }
by hitting the AdyenClient.new.payments.refund(input1, input2)
How to reproduce
Steps to reproduce the behavior.
a) initializing first:
adyen_client = Adyen::Client.new.tap do |_adyen|
_adyen.api_key = "some value"
_adyen.env = :live
_adyen.live_url_prefix = "some value"
_adyen.checkout.version = 68
end
b) By hitting this adyen_client.payments.refund(input1, input2) where
Expected behavior
No idea about the response as hitting the API gives error.
Screenshots
Desktop (please complete the following information):
Additional context
None
The text was updated successfully, but these errors were encountered: