Confirmed users
324
edits
(Document icons, added in https://bugzilla.mozilla.org/show_bug.cgi?id=848675) |
(→Initiating a Payment: fix formatting to show icon URLs) |
||
| Line 64: | Line 64: | ||
Example of server-side JWT generation in Python using [https://pypi.python.org/pypi/PyJWT-mozilla PyJWT-mozilla]: | Example of server-side JWT generation in Python using [https://pypi.python.org/pypi/PyJWT-mozilla PyJWT-mozilla]: | ||
<code> | <code><pre> | ||
paymentJWT = jwt.encode({ | paymentJWT = jwt.encode({ | ||
"iss": APPLICATION_KEY, | "iss": APPLICATION_KEY, | ||
| Line 85: | Line 85: | ||
} | } | ||
}, APPLICATION_SECRET) | }, APPLICATION_SECRET) | ||
</code> | </pre></code> | ||
Here is a detailed explanation of the payment JWT: | Here is a detailed explanation of the payment JWT: | ||