By Marius Lead on Saturday, 19 May 2018
Posted in General Issues
Likes 0
Views 737
Votes 0
When I get error message paying through stripe, a user is redirected to url that looks like
index.php?option=com_payplans&view=payment&task=pay&payment_key=8O56WJCMAKGL&error_code=card_declined&error_msg=Your%20card%20was%20declined.

Can I add Itemid=xxx at the end of that url, so I can load correct styling?
Hey Marvin,

This isn't possible currently as PayPlans uses it's own routing behavior but if you need to tweak this, you could try editing the file /plugins/payplans/stripe/stripe/app/stripe/stripe.php and at line 151 locate the codes below to insert the item id,

[gist]
$url = "index.php?option=com_payplans&view=payment&task=pay&payment_key=".$payment->getKey()
."&error_code=".$errors['error_code']."&error_msg=".urlencode($errors['error_message']);
[/gist]
·
Saturday, 19 May 2018 00:29
·
0 Likes
·
0 Votes
·
0 Comments
·
I found url in 2 places, lines 151 default and exception 197 or so, changed url in both.
Thanks for help!
·
Monday, 21 May 2018 22:35
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome Marvin, glad that your issue is resolved now
·
Monday, 21 May 2018 22:44
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post