$ flutter create flutter_talk
$ cd flutter_talk
Now open emulator or attach device
$ flutter run
# Created by https://www.gitignore.io/api/unity | |
### Unity ### | |
/[Ll]ibrary/ | |
/[Tt]emp/ | |
/[Oo]bj/ | |
/[Bb]uild/ | |
/[Bb]uilds/ | |
/Assets/AssetStoreTools* |
[ | |
{ | |
"title": "Double Shot", | |
"desc": "Roll some dice, Highest number takes a shot", | |
"img": "imgs/obj_A.jpg" | |
}, | |
{ | |
"title": "Straight Shooter", | |
"desc": "Take a shot straight, as in no chaser", |
$ flutter create flutter_talk
$ cd flutter_talk
Now open emulator or attach device
$ flutter run
$ flutter create flutter_talk
$ cd flutter_talk
Now open emulator or attach device
$ flutter run
exports.recurringPayment = functions.https.onRequest(async (req, res) => { | |
const hook = req.body.type | |
const data = req.body.data.object | |
// 300 or 400 as failed will cause stripe to rerun | |
if (!data) return res.status(400).send('data missing') | |
if (!data.subscription) return res.status(200).send('not a subscription') | |
if (hook !== 'invoice.payment_succeeded' && hook !== 'invoice.payment_failed') return res.status(400).send('unknown hook') |