I'm trying to add GIFTCARD From a native Android app to the Google Pay App. For this, I want to use The native Android SDK to connect my app with the Google Pay. But, accordingly to the Google Pay API documentation we need loyaltyclass
to do this.
I want to develop a app for testing purpose, is there any way to do this without loyaltyclass
?
Or, Is there any other way to do this ?
It isn't necessary to create a
loyaltyClass
to save a gift card. The documentation usesloyaltyClass
andloyaltyObject
as an example but you should be able to replace them withgiftcardClass
andgiftcardObject
: https://developers.google.com/pay/passes/guides/pass-verticals/use-cases?vertical=gift-cardsGift cards are supported by the Android SDK: https://developers.google.com/pay/passes/guides/introduction/about-google-pay-api-for-passes