Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
The URL generated in recurly_hosted_account_manage_url()
returns a 404. This url is generated using the hosted_login_token
property of the Recurly_Account
object and matches the format documented in Recurly's API so I am not sure why it is returning 404.
Proposed resolution
This page from the Recurly documentation explains the URL structure needed.
Comment | File | Size | Author |
---|---|---|---|
#13 | interdiff-2869882-10-13.txt | 1.86 KB | markdorison |
#13 | recurly_hosted_account-2869882-13.patch | 39.04 KB | markdorison |
| |||
#10 | recurly_hosted_account-2869882-10.patch | 38.25 KB | adamzimmermann |
| |||
#4 | recurly_hosted_account-2869882-4.patch | 38.37 KB | adamzimmermann |
Comments
Comment #2
markdorisonComment #3
adamzimmermann CreditAttribution: adamzimmermann at Chromatic commentedComment #4
adamzimmermann CreditAttribution: adamzimmermann at Chromatic commentedThis issue addresses the 404 the module redirects you to when you visit
/[recurly-entity]/[entity-id]/subscription/billing
. I fixed that, but couldn't find a link to that URL anywhere in the code. I discovered that the route was registered, but no local task was registered for the route. So I set about fixing that, ran into some issues with permissions on the route itself, and also cleaned up the code a bit along the way. This definitely does a bit more, but I believe it is all issues that needed to be fixed.To test this, visit
/user/1/subscription
and verify that the "Update Billing" tab appears whenrecurly_hosted
is enabled. Also, verify that it redirects you to a billing update page on recurly.com. A cache clear may be needed to get the tab to appear after applying the patch.Comment #5
adamzimmermann CreditAttribution: adamzimmermann at Chromatic commentedComment #7
markdorisonComment #9
markdorison@adamzimmermann Patch does not apply cleanly.
Comment #10
adamzimmermann CreditAttribution: adamzimmermann at Chromatic commentedFixed.
Comment #11
markdorison@adamzimmermann
I do not see the "Update billing" tab even after multiple cache clears.RecurlyJsSettingsFormWebTest
for an example).Comment #12
markdorison@adamzimmermann Updated comment above as after re-testing I now see the tab.
Comment #13
markdorisonComment #14
walangitan CreditAttribution: walangitan at Chromatic commented#13 applies cleanly and addresses the issue. Marking this RTBC unless there are more tests in mind.
Comment #16
markdorison