Issue Description

The variable $entity_id is never defined on line 88 in /recurly/modules/recurlyjs/src/Form/RecurlyJsSubscribeForm.php

As a result, the account code is always 'user-' which causes issues with multiple account creation via the Subscribe form.
$recurly_account->account_code = $entity_type . '-' . $entity_id;

Solution/Patch

A simple patch replacing $entity_id with $entity->id() should resolve this issue.

Comments

utsavjshah created an issue. See original summary.

utsavjshah’s picture

Version: 8.x-1.0 » 8.x-1.x-dev
utsavjshah’s picture

StatusFileSize
new691 bytes
markdorison’s picture

Status: Active » Needs review
markdorison’s picture

Status: Needs review » Reviewed & tested by the community

markdorison’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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