Problem/Motivation
I have not signed up for any accounts.
On user/xx/subscription/signup
I get the list of the plans that I enable with a “sign up” Text
When I click on the text I get the following error
Recurly_UnauthorizedError: "Your API Key is not authorized to connect to Recurly." at Drupal/vendor/recurly/recurly-client/lib/recurly/util/http_validations.php line 21,
I can access the admin/config/services/recurly/subscription-plans page just fine.
So the api is working there but not on the user page
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | recurly-unauth_api-3241695-11.patch | 505 bytes | rakesh.drupal |
| #10 | recurly-unauth_api-3241695-10.patch | 11.17 KB | j_ten_man |
Issue fork recurly-3241695
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
socialnicheguru commentedHere is the signup_url from modules/contrib/recurly/src/RecurlyPreprocess.php
the only issue that I can see is that there is no value for currency.
I did enable this to delete commerce_currency_format as i was given errors.
https://www.drupal.org/project/recurly/issues/2895261
Comment #5
sultancillo commentedI'm sure i broke all kinds of protocols here but this merge request solves this issue:
https://git.drupalcode.org/project/recurly/-/merge_requests/5
Also solves the problems with RecurlyJS not using the correct address requirements in the settings and payment form..
Seems like the recurlyjs module got left behind when the change was made from using RecurlyClient to RecurlyClientFactory
Comment #6
colanComment #7
loze commentedConfirming that this fixes the issue with recurlyjs causing unauthorized api errors.
Comment #8
loze commentedAfter further testing I found that it was also failing on the subscription change/cancel forms due to the move from RecurlyClient to RecurlyClientFactory
This is a patch with the changes in #4 and a few small updates to get it working on those form pages.
Comment #9
j_ten_man commentedThis is working for me.
Comment #10
j_ten_man commentedApparently another place that's not working - the push/webhook listener. Updated the patch to include the change.
Comment #11
rakesh.drupal commentedAfter testing, I found that recurly client is missing, and after initializing the client that is working for me.
Comment #14
eojthebraveIt looks like much of this issue was fixed in #3061322: Port support for recurly.Pricing() from D7 to D8. Mainly injecting the Recurly client object into the \Recurly_Billing calls. I opened a new MR to fix the one remaining issue with \Recurly_Billing (it was just easier to start a new one than to try and rebase the old one). And incorporated the fixes from above. I also added tests for the billing info update form to hopefully help ensure we don't have this issue again.
In adding tests I also cleaned up a few other things:
Comment #15
blakehall commentedAfter a review, this looks good to me. Marking RTBC
Comment #17
eojthebrave