Skip to content

Instantly share code, notes, and snippets.

@SeraphimSerapis
Created May 19, 2015 22:36
Show Gist options
  • Save SeraphimSerapis/61be23e81476b8d5e84b to your computer and use it in GitHub Desktop.
Save SeraphimSerapis/61be23e81476b8d5e84b to your computer and use it in GitHub Desktop.
Store a payment method for future usage
Braintree::Transaction.sale(
:amount => "100.00",
:payment_method_nonce => "nonce-from-the-client",
:options => {
:store_in_vault_on_success => true
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment