Android Pay throws an exception

I’m using Apple Pay (with Expo payments) and is working ok, but when I try to call

Stripe.deviceSupportsAndroidPayAsync()

I got this error:

StripeModule.deviceSupportsAndroidPay is not a function. (In ‘StripeModule.deviceSupportsAndroidPay()’

I have the two required dependencies on build.gradle

implementation ‘com.google.android.gms:play-services-wallet:18.1.1’
implementation ‘com.android.support:appcompat-v7:24.1.1’

Anyone experienced the same error before?