Strangely, if using an integer as the plan_code in recurly it will show up in the subscriptions plan admin list but wont show up on the signup pages.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | integer_string_equality-1900110.patch | 568 bytes | 7wonders |
Strangely, if using an integer as the plan_code in recurly it will show up in the subscriptions plan admin list but wont show up on the signup pages.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | integer_string_equality-1900110.patch | 568 bytes | 7wonders |
Comments
Comment #1
7wonders commentedIt was because of the === identity check instead of just a == equality check between saved plan codes and recurly plan codes. Thats because the subscriptions with integer plan_codes are saved as integers in variable_set even though they are strings from recurly. Simple fix attached.
Comment #2
7wonders commentedComment #3
quicksketchThanks! Committed.
Comment #5
Eric B. commentedThis same issue presents itself in 2 more places here: /recurly/includes/recurly.pages.inc
if ($subscription->pending_subscription->plan->plan_code === $plan_code) {
elseif ($subscription->plan->plan_code === $plan_code) {