readme some

This commit is contained in:
Rimian Perkins 2019-09-12 13:13:06 +10:00
parent c79541a48b
commit 8785e98464
2 changed files with 12 additions and 0 deletions

View File

@ -13,6 +13,12 @@ This is a newer version of https://github.com/rimian/discourse-donations. Many t
* Add your Stripe public and private keys in settings and set the currency to your local value.
* Enable the plugin and wait for people to donate money.
## Usage
Enable the plugin and enter your Stripe API keys in the settings. You can also configure amounts and the default currency.
Visit `/patrons`
## Testing
## Warranty

View File

@ -36,6 +36,12 @@ module DiscoursePatrons
post :create, params: {}, format: :json
expect(response).to have_http_status(200)
end
it 'has curency' do
::Stripe::PaymentIntent.expects(:create).with(has_entry(:currency, 'AUD'))
post :create, params: {}, format: :json
expect(response).to have_http_status(200)
end
end
end
end