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
The problem lies to the fact that the TypeData struct attribute has a wildcard tag form:"*" which results in it being encoded on the same level as the rest of the struct and not as subfields of the type name. I guess this means that there should be a special case in the structEncoder's encode function or on some other level that depending on the payment source Type it gives the correct key name for the TypeData map.
Unless I totally missed something and there already is a proper way of making those requests that hasn't been documented yet.
Go version: 1.8.3
The text was updated successfully, but these errors were encountered:
The new
form
package does not fully support payment sources. Especially I ran into the problem when trying to create a newthree_d_secure
source.What the
/v1/sources
endpoint expects:What is actually being sent:
The problem lies to the fact that the
TypeData
struct attribute has a wildcard tagform:"*"
which results in it being encoded on the same level as the rest of the struct and not as subfields of the type name. I guess this means that there should be a special case in thestructEncoder's encode
function or on some other level that depending on the payment sourceType
it gives the correct key name for theTypeData
map.Unless I totally missed something and there already is a proper way of making those requests that hasn't been documented yet.
Go version: 1.8.3
The text was updated successfully, but these errors were encountered: