It turns out that the URLs being passed around are in different formats. This is causing errors as some methods are expecting Urls and others are expecting strings. Included in this problem is the original report below, where the billing-update URL is incorrect, but it makes sense to fix all of these problems at once.

Original issue

This is a follow-up to #2869882: recurly_hosted account manage url returns 404. The URL for this was set there, but it was set incorrectly. It's missing an /edit at the end, as per Hosted Billing Information in the docs.

Patch forthcoming.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

colan created an issue. See original summary.

colan’s picture

Issue summary: View changes

Added link to docs.

colan’s picture

Status: Active » Needs review
FileSize
1.2 KB

Patch attached.

colan’s picture

Title: Recurly Hosted's "Update billing information" URL returns 404 » Recurly Hosted's URLs are mismatched
Issue summary: View changes
Status: Needs review » Needs work

Added greater scope to IS.

colan’s picture

See attached.

colan’s picture

Title: Recurly Hosted's URLs are mismatched » Recurly Hosted's URL formats are mismatched
markdorison’s picture

Status: Needs review » Needs work

Changes look good except for one code item below.

+++ b/modules/recurly_hosted/recurly_hosted.module
@@ -19,35 +20,27 @@ function recurly_hosted_recurly_url_info($operation, $context) {
+      $settings_raw = (new RecurlyEntityTypeInfo(\Drupal::configFactory()))->getUserInfoMappings();

The recurly.entity_type service should be used to instantiate this class instead of calling it with "new" directly. See recurly.module for an example.

colan’s picture

How's this?

  • markdorison committed 949a74c on 8.x-1.x authored by colan
    Issue #2973143 by colan: Recurly Hosted's URL formats are mismatched
    
markdorison’s picture

Status: Needs review » Fixed
markdorison’s picture

Status: Fixed » Needs review
FileSize
410 bytes
+++ b/modules/recurly_hosted/recurly_hosted.module
@@ -10,6 +10,7 @@
+use Drupal\recurly\RecurlyEntityTypeInfo;

I missed this in my initial review, but this use statement was added but is no longer needed.

colan’s picture

Status: Needs review » Reviewed & tested by the community

Good catch!

  • markdorison committed 4cda8e8 on 8.x-1.x
    Issue #2973143 by colan, markdorison: Recurly Hosted's URL formats are...
markdorison’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.