Google Pay is currently available in beta with our latest Android and JavaScript SDKs.

Creating transactions

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

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

To prevent breaking changes, API responses from calls using Google Pay payment methods will still reflect the Android Pay name. For example, the response from a PaymentMethod.create() call will include the AndroidPayCard response object.


Because each unique Google Pay transaction requires consent from the customer during the checkout flow, vaulting Google Pay payment methods for future transactions will result in declines and is not recommended. However, Google Pay can be used for recurring billing and split shipment transactions because the customer consents to future transactions during checkout.

Next: Testing and Go Live →

Still have questions?

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