diff --git a/stripe/database.rules.json b/stripe/database.rules.json index 25c63a2f00..ecd3485c51 100644 --- a/stripe/database.rules.json +++ b/stripe/database.rules.json @@ -4,14 +4,14 @@ "$uid": { ".read": "$uid === auth.uid", "sources": { - "$chargeId" : { + "$sourceId" : { ".write": "$uid === auth.uid", "token": { ".validate": "newData.isString()" }, "$other": { ".validate": false } } }, "charges": { - "$sourceId" : { + "$chargeId" : { ".write": "$uid === auth.uid", "source": { ".validate": "newData.isString()" }, "amount": { ".validate": "newData.isNumber()" },