Closed (fixed)
Project:
Commerce Stripe
Version:
7.x-1.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
24 Feb 2016 at 15:09 UTC
Updated:
27 May 2016 at 18:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
Alluuu commentedOk, I managed to trace the redirect loop in Chrome and it's following:
It seems that the /users/%uid/cards/add is 302 redirecting to itself
Comment #3
Alluuu commentedI was able to get rid of the redirect loop for when using stripe.js but not "checkout"
Updating commerce_cardonfile to the 7.2.x--dev version removes the loop issue, but not the 403 checkout issue.
Comment #4
Alluuu commentedI've stumbled upon another issue with adding a card from /user/%uid/cards/add, where there is an error thrown:
on line 875, which is:
Comment #5
Alluuu commentedThere's a mistake with
$form_state['card']->uid);where it should be
$form_state['card_data']->uid);It's been changed to card_data everywhere else, but for that line has been missed.
Comment #6
torgospizzaNice catch. Here is a one-line patch for that particular typo/bug.
Comment #7
wizonesolutions@Alluuu @torgosPizza I can't reproduce the 403 that torgosPizza's patch is supposed to cause. What are the proper steps? I clicked the "Add card" link with integration method set to Stripe.js.
Editing/adding isn't implemented for Checkout, and that's why the operations do not show up, @Alluuu. Known issue. I am going to work on implementing those, but I will open a separate issue for that (and I am updating the title a bit here).
Comment #8
sebastien m. commentedPatch #6 works perfectly for me with Stripe.js integration method.
Can you flag this issue as "Reviewed by community" and create another issue dedicated for "checkout" method support and linking them together ?
Thanks
Comment #9
wizonesolutions@Sebastien @Actualys: This patch includes Stripe Checkout support. Did you test that?
Comment #10
sebastien m. commented@wizonesolutions, the #6 patch only fixes a typo error when registering a card on user profile.
Why do you say that it includes Stripe Checkout support ?
What I have to check ?
Comment #11
wizonesolutions@Sebastien @Actualys Whoops! Sorry, I confused this one for #2703577: Add Card on File management for Stripe Checkout integration method
Comment #12
torgospizza@Sebastien: Thanks! Go ahead and mark this RTBC if it worked for you. (I would but I wrote the patch...)
Comment #13
torgospizzaThis is a super simple patch so I'm just going to RTBC it myself.
Comment #15
torgospizzaSetting to fixed but please let me know if anyone runs into further trouble with Card on File support.