Skip to content

Instantly share code, notes, and snippets.

@kitwalker12
Created August 22, 2013 17:57
Show Gist options
  • Save kitwalker12/6310601 to your computer and use it in GitHub Desktop.
Save kitwalker12/6310601 to your computer and use it in GitHub Desktop.
Braintree add Payment through Spree API.
PUT http://<spree-domain>/api/checkouts/<order_number>?order[payments_attributes][][payment_method_id]=<braintree_payment_id_spree>&order[payments_attributes][][amount]=<amount>&order[payments_attributes][][source_attributes][gateway_payment_profile_id]=<braintree_customer_id>&order[payments_attributes][][source_attributes][gateway_customer_profile_id]=<braintree_payment_id>&order[payments_attributes][][source_attributes][year]=<year>&order[payments_attributes][][source_attributes][month]=<month>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment