availability

Google is no longer accepting new Android Pay integrations. Instead, you can integrate Google's latest payment product, Google Pay, which is now available 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 Google Pay.

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 Transaction.sale() call on your server:

Ruby
Copy
Copied
result = gateway.transaction.sale(
  :amount => "10.00",
  :payment_method_nonce => params[:payment_method_nonce],
)
if result.success?
  puts "Success ID: #{result.transaction.id}"
else
  puts result.message
end
This code snippet now uses gateway instance methods instead of class-level methods. Learn more.
important

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 Page: Testing and Go Live →

Still have questions?

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