'Google Pay Push Provisioning Sample

I am trying to develop a routine to add a debit card from my app to Google Pay by clicking an Add to Google Pay button.

The Google Pay Push Provisioning documentation provides a Little Bear example, which I'm able to build and run. However, whenever I try to add any of the sample cards to Google Pay, it keeps throwing the following error:

NO OPC SET - You need to set an OPC in the Settings page before you can test Push Provisioning.

Any nudge in the right direction would be appreciated.



Solution 1:[1]

In the current version of the app, you can set/update the OPC on the Settings tab of the Little Bear sample app (about half way down).

Assuming you have access to the Google Pay Push Provisioning developer site, you can reach out to the Push Provisioning API support team should you need additional assistance by following the instructions at: https://developers.google.com/pay/issuers/apis/push-provisioning/android/support/get-help#general_questions

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1