Skip to content

Instantly share code, notes, and snippets.

@hmarr
Last active December 16, 2015 10:19
Show Gist options
  • Save hmarr/5419338 to your computer and use it in GitHub Desktop.
Save hmarr/5419338 to your computer and use it in GitHub Desktop.
GoCardless Ruby Library API Deprecation

API Deprecation in gocardless-ruby

When initialising gocardless-ruby with your GoCardless account details, your merchant id must now be passed in explicitly. This means that including the manage_merchant scope in the token attribute is now deprecated.

Before

GoCardless.account_details = {
  :app_id     => 'APP_ID_XXXXXXXXXXXXXXXXXXXXX',
  :app_secret => 'APP_SECRET_XXXXXXXXXXXXXXXXX',
  :token      => 'ACCESS_TOKEN_XXXXXXX manage_merchant:MERCHANT_ID',
}

After

GoCardless.account_details = {
  :app_id      => 'APP_ID_XXXXXXXXXXXXXXXXXXXXX',
  :app_secret  => 'APP_SECRET_XXXXXXXXXXXXXXXXX',
  :token       => 'ACCESS_TOKEN_XXXXXXX',
  :merchant_id => 'MERCHANT_ID',
}

If you have any questions, get in touch with us at help@gocardless.com.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment