(Quick Reference)

2 Configuration - Reference Documentation

Authors: Bobby Warner

Version: 2.5

2 Configuration

You will need to set two configuration items in Config.groovy before using the plugin. Before you can add these though, you need to register for an account. So, head on over to the Stripe registration form and create your account. Once you're logged in, click on the top-right link for Your Account and then Account Settings. This will pop open a box where you can find your API Keys. Stripe provides each account with separate publishable and secret keys for testing and live.

grails.plugins.stripe.secretKeyYour secret key from Stripe
grails.plugins.stripe.publishableKeyYour publishable key from Stripe

You will want to put these config values in the appropriate environment in Config.groovy.

You can use the optional configuration items listed below

grails.plugins.stripe.api.urlYour custom api URL. Useful for mocking out the api for a functional test environment, or providing custom responses from stripe for testing purposes. Your url will be appended with '/v1/<endpoint>' when calls are made.