Question about payment redirection

4 years 6 months ago #314186 by liaskas
Question about payment redirection was created by liaskas
Hello...
this situation is a bit complex so i will do my best to be as more specific as possible.

2 sites share the same database and users.
1) MainSite
2) ParallelSite

In previous versions of CbSubs i could modify file /public_html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/plugin/cbsubscontent/cbsubs.content_access.php

in the following way:

$redirectUrl = 'www.ParallelSite.com/index.php?option=com_comprofiler&task=pluginclass&plugin=cbpaidsubscriptions&do=accessdenied' . getCBprofileItemid( false);

so that when a user of the Main site was redirected to pay, he was transferred to the Parallel site and he made the payment.

In the latest CbSubs versions things got a bit more complicated (at least for me that i am not a php expert)

So now we have...

$redirectUrl = $_CB_framework->pluginClassUrl( array( 'plugin' => 'cbpaidsubscriptions', 'do' => 'accessdenied' ), false, $redirectVars );

How can we change the $redirectUrl point to "www.ParallelSite.com/index.php?option=com_comprofiler&task=pluginclass&plugin=cbpaidsubscriptions&do=accessdenied" like we did in older versions?

Please advise...

Thank you in advance!

Please Log in to join the conversation.

4 years 6 months ago #314201 by krileon
Replied by krileon on topic Question about payment redirection
Why do you have two sites sharing a database to begin with? That won't really work reliably as for example user uploads (image fields, etc..) would be on 1 domain, but not the other. Ideally if you need this you'd have 1 site, but 2 domains pointing to it and it wouldn't matter which one they made a purchase on. None of our products are designed for your scenario so yes I suppose you can change the redirect URL like that, but I've no idea how well that's going to work.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.192 seconds

Facebook Twitter LinkedIn