vue-google-pay
Version:
Google Pay component for Vue
26 lines (24 loc) • 388 B
Markdown
# Vue Google Pay
A Vue wrapper for Google Pay
## Installation
```
npm install vue-google-pay
```
or
```
yarn add vue-google-pay
```
## Usage
1. Import the component
```javascript
import { GooglePayButton } from 'vue-google-pay'
```
2. Add the component
```javascript
<GooglePayButton
id="google-pay-btn"
:options="options"
@payed="processPayment()"
@cancel="handleCancel"
/>
```