idevaffiliate integration not properly tracking sales

4 years 7 months ago #314343 by wjgadmin
I'll try to create the dummy gateway, thank you.
idevaffiliate support has already confirmed that all of my settings are correct in CBSubs so that can't be it. Do you have any ETA on the next build? I'd like to get that tested so we can resolve the issue.

There isn't any reason our site wouldn't send the HTTP call, none of our other HTTP calls have any issues including the one(s) from CBSubs, we use the URL to send HTTP posts among others. Thank you

Please Log in to join the conversation.

4 years 7 months ago #314345 by krileon

Do you have any ETA on the next build? I'd like to get that tested so we can resolve the issue.

No, but you can try the below quickfix, which is the planned fix to be in the next build.

IN: /components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/plugin/cbsubsidevaf/cbsubs.idevaf.php
ON: Lines 72 - 85
FROM:
				cbimport( 'cb.snoopy' );

				$snoopy					=	new CBSnoopy();
				$snoopy->read_timeout	=	30;

				$commission_url			=	$path . '/sale.php'
										.	'?profile=72198'
										.	'&idev_saleamt=' . urlencode( $price )
										.	'&idev_ordernum=' . urlencode( $orderid )
										.	'&idev_option_1=' . urlencode( trim( $data1 ) )
										.	'&idev_option_2=' . urlencode( trim( $data2 ) )
										.	'&idev_option_3=' . (int) $item->plan_id
										.	'&ip_address=' . urlencode( $saleIPaddresses[0] );
				$snoopy->fetch( $commission_url );
TO:
				$client					=	new \GuzzleHttp\Client();
				$query					=	array(	'profile'		=>	72198,
													'idev_saleamt'	=>	$price,
													'idev_ordernum'	=>	$orderid,
													'idev_option_1'	=>	trim( $data1 ),
													'idev_option_2'	=>	trim( $data2 ),
													'idev_option_3'	=>	(int) $item->plan_id,
													'ip_address'	=>	$saleIPaddresses[0]
												);

				$client->get( $path . '/sale.php', array( 'query' => $query, 'timeout' => 30 ) );


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.

4 years 7 months ago #314347 by wjgadmin
great news, that appears to have been the issue :)
Thank you for providing this fix. Going forward is there anything we need to do to make sure it continues working? Meaning is there any other changes that would typically cause this type of issue that we should keep an eye on?

Also thanks for the testing instructions, that helped immensely!
The following user(s) said Thank You: nant, krileon

Please Log in to join the conversation.

4 years 7 months ago #314364 by krileon

Going forward is there anything we need to do to make sure it continues working? Meaning is there any other changes that would typically cause this type of issue that we should keep an eye on?

Nope, that fix is the exact fix we're planning to implement for next build.


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.224 seconds

Facebook Twitter LinkedIn