library · inferred from evidence
gocardless-pro-ruby
A Ruby library for interacting with GoCardless API.
- GoCardlessPro::InvalidApiUsageError 'One of your parameters was incorrectly typed' after Rails 6.0.2.1...
Pass a real string for the session token - use session.id combined with public_id (the fix recommended by the Rails team) instead of bare session.id when creating the redirect flow. GoCardless confirmed the parameter must be a string and wo
- GoCardless instalment_schedules create_with_dates: 'Invalid document structure' — amount vs total_amount
The docs example was wrong. Use `total_amount` (not `amount`) as the top-level key in `instalment_schedules.create_with_dates` — e.g. `total_amount: 10_000` for 100 GBP — and the 'Invalid document structure' error goes away. The maintainer
- gocardless_pro ruby: NoMethodError 'undefined method each for nil:NilClass' with faraday 0.16.2
Not a GoCardless bug — faraday 0.16.x had the regression. The reporter confirmed 0.17.0 works, and the issue was closed as superseded. Fix: upgrade faraday to 0.17.0+ (a maintainer suggested the gem require `~> 0.17`). Downgrading to 0.15.4
- GoCardless PayoutItem amount is a string, not an integer — is it intentional?
Yes, intentional. Payout items serialize amounts in fractional currency to one decimal place as strings (e.g. `"1234.5"` for GBP 12.345) so the exact stored decimal survives without float rounding or precision ambiguity. Parse it as a decim