ampproject / ampproject/amphtml
amp-subscription authorizationUrl not being called
- Dominant language
- JavaScript
- Stars
- 14.9k
- Forks
- 4.1k
- PR merge metrics
- No merged PRs in 30d
Description
### Description
According to the documentation https://amp.dev/documentation/components/amp-subscriptions. A JSON object should be passed as a child to this script and then an API call must be made to the authorizationUrl provided as a child. But There is no api call being made now.
### Reproduction Steps
1. See this script is coming in the DOM tree
```
{`{
"services": [
{
"authorizationUrl": "https://pub.com/amp-authorisation?rid=READER_ID&url=SOURCE_URL",
"pingbackUrl": "https://pub.com/amp-pingback?rid=READER_ID&url=SOURCE_URL",
"actions": {
"login": "https://pub.com/amp-login?rid=READER_ID&url=SOURCE_URL",
"subscribe": "https://pub.com/amp-subscribe?rid=READER_ID&url=SOURCE_URL"
}
}
],
"score": {
"supportsViewer": 10,
"isReadyToPay": 9
},
"fallbackEntitlement": {
"source": "fallback",
"granted": true,
"grantReason": "SUBSCRIBER",
"data": {
"isLoggedIn": false
}
}
}`}
```
2. Go to network tab and see if the api call is being made to the **authorizationUrl** provided inside the services.
### Relevant Logs
_No response_
### Browser(s) Affected
_No response_
### OS(s) Affected
_No response_
### Device(s) Affected
_No response_
### AMP Version Affected
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.