-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
aaa this is all completely wrong, jwt needs to be generated in api ro…
…ute and signed with private key from oauth :|
- Loading branch information
1 parent
372b96c
commit d2b9dd6
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import SaveToGooglePay from '@google-pay/save-button-react'; | ||
|
||
interface Props { | ||
ticketJwt: string; | ||
} | ||
|
||
const GooglePayBtn = ({ ticketJwt }: Props) => { | ||
const jwt = { | ||
ticketHolderName: 'Nick', | ||
ticketNumber: 'ticketIdHere', | ||
id: 'prom.ticketIdHere', | ||
classId: 'prom.classIdHere', | ||
state: 'ACTIVE', | ||
barcode: { | ||
type: 'QR_CODE', | ||
value: ticketJwt, | ||
alternateText: 'Nick - ticketId', | ||
}, | ||
} as const; | ||
return ( | ||
<SaveToGooglePay jwt={jwt} /> | ||
); | ||
}; | ||
|
||
export default GooglePayBtn; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters