Here's one [example](https://github.com/Shopify/active_merchant/blob/4246aac0230e91168b04a4590289f9b51b74678b/lib/active_merchant/billing/integrations/paydollar.rb#L33-L42). You definitely don't need to worry about using :credential5 for test mode using this pattern.