Google is no longer accepting new Android Pay integrations. Instead, you can integrate Google's latest payment product, Pay with Google, which is now available in beta with our latest Android and JavaScript SDKs.

If you have an existing Android Pay integration, it will continue to be supported but we recommend migrating as soon as possible. Please check out our guide for migrating to Pay with Google.

If you have started but not completed an Android Pay integration, or if you have any questions, contact our Support team.

Creating transactions

Include the Android Pay nonce in the Braintree::Transaction.sale() call on your server:

result = Braintree::Transaction.sale(
  :amount => "10.00",
  :payment_method_nonce => params[:payment_method_nonce],
if result.success?
  "Success ID: #{result.transaction.id}"

We recommend using Android Pay nonces only for creating one-time transactions. Subsequent transactions will fail to process if you add an Android Pay nonce as a customer's payment method for future transactions or subscriptions. If you are interested in using Android Pay for subscriptions, contact our Support team.

Next: Testing and Go Live →

Still have questions?

If you can’t find an answer, contact our Support team.