[![pub package](https://img.shields.io/pub/v/pay_android.svg)](https://pub.dartlang.org/packages/pay_android)

This is an implementation of the [`pay_platform_interface`](https://github.com/google-pay/flutter-plugin/tree/main/pay_platform_interface) package for Android.

## Usage

### With the `pay` plugin

This package is the endorsed implementation of the [`pay` plugin](https://pub.dev/packages/pay), so it gets automatically added to your [dependencies](https://flutter.dev/platform-plugins/) by adding the `pay` package to your `pubspec.yaml`:

```yaml
dependencies:
  pay: ^1.0.6
```
### Using this package directly

If you prefer to integrate or extend this package separately, add it as a dependency in your `pubspec.yaml` file as follows:

```yaml
dependencies:
  pay_android: ^1.0.5
```

Now, you can use the buttons available for the supported payment providers and the methods exposed in [the interface that this package uses](https://github.com/google-pay/flutter-plugin/tree/main/pay_platform_interface) to communicate with the native end.

```dart
RawGooglePayButton(
  style: GooglePayButtonStyle.black,
  type: GooglePayButtonType.pay);
```

<br>
<sup>Note: This is not an officially supported Google product.</sup>