printdotio / printio-api

Issues + wiki for the api. See http://print.io/api
0 stars 0 forks source link

Use Braintree Payment Nonce to Submit order #19

Closed barnbucket closed 9 years ago

barnbucket commented 9 years ago

To submit an order the API is requires Braintree's encrypted Credit Card#, CCV, and EXP date.

Instead of passing those fields we would like to submit an order with just the payment method nonce generated from the Braintree SDK. This should take the place of the above fields.

jmselk commented 9 years ago

This looks right to me. Since the Braintree SDK flow hides the encrypted CC #, Expiration and CVV codes and just hands off the nonce, we'll have no other way of submitting the order.

micahasmith commented 9 years ago

on staging

ngilas commented 9 years ago

I assume you placed a new field on the order for the payment nonce... Is it the "PartnerBillingKey" in the payment section? Also, are the other values in the payment object optional since all of the info is contained within the nonce?

micahasmith commented 9 years ago

Payment.BraintreeEncryptedNonce

https://staging-api.print.io/docs/#!/orders/POST_post_1

You only need to also pass Total