I’m having an issue with charge-to. It doesn’t seem to be working. I used the same Javascript code found here: Facilitator Fee for ACH transfers | Dwolla API Documentation
Hey, @colterconway! Thank you for bringing this to our attention! Since the charge-to
object key contains a hyphen, it must be surrounded with either single or double quotes when expressed in JavaScript. For example, please consider the following code snippet:
fees: [
{
_links: {
'charge-to': {
href: 'https://api-sandbox.dwolla.com/customers/479ce4c8-385f-4cfa-9693-262c0c3b6408'
}
},
amount: {
value: '2.00',
currency: 'USD'
}
}
]
Additionally, I do see where our documentation should have been more clear on this behavior and have added a ticket to get it addressed as soon as possible.