skopu / sofort

Rails client for Sofort API
MIT License
3 stars 11 forks source link

Add a user_variable option to the pay method #2

Closed otagi closed 8 years ago

otagi commented 8 years ago

This allows to pass a custom value to the pay method:

client.pay(12, 'skopu', { user_variable: "foo bar" })

and get it back with the details method:

details = client.details(token)
puts details['user_variables']['user_variable']
# => "foo bar"