Home › Forums › Community Forum › Incorrect string sent to CCBill DataLink
Tagged: authentication, ccbill, DataLink, error, log, sub-account
This topic contains 13 replies, has 3 voices. Last updated by Jason (Lead Developer) 3 years, 6 months ago.
Topic Author | Topic |
---|---|
Posted: Friday May 31st, 2013 at 8:58 am #51040 | |
|
|
This is a bit of an odd one. I have a CCBill account with two sub-accounts: 0000 and 00001. Each sub-account has it’s own DataLink account, as well as one set up for all. When I input details for the all DataLink account, I get a correct log:
When I input details for the 0000 or 0001 DataLink accounts, I get an incorrect log:
Both report with no authentication errors. Why is it that the password is reporting as xxxxxxxx? I don’t have any problems using the all DataLink account, my only worry is that sub-account 0000 might log DataLink info for sub-account 0001 and vice-versa. Is there any risk of this? Any help would be much appreciated.
|
List Of Topic Replies
Author | Replies |
---|---|
Author | Replies |
Posted: Friday May 31st, 2013 at 9:39 pm #51095 | |
|
|
Are you using the [hilite mono]sub_account[/hilite] attribute in your ccBill shortcode? [hilite path]Dashboard -› s2Member® -› ccBill® Buttons -› Shortcode Attributes -> sub_account[/hilite]
What does your s2Member log say about those transactions? If you want us to take a look at them, please submit your site’s info using the contact form and leave a reply here when you do. s2Member® » Private Contact Form I’ll remove your credentials from the URLs in your post, since this forum is public. |
|
Posted: Saturday Jun 1st, 2013 at 9:07 am #51130 | |
|
|
Have submitted details via the contact form just now. |
|
Posted: Tuesday Jun 4th, 2013 at 6:03 pm #51364 | |
|
|
Thanks Lawrence, got the info. I reviewed the logs and see an error where I looked. I also searched for a mention of the 0001 account but didn’t find one. Are you using the [hilite mono]sub_account[/hilite] attribute in your shortcode? See my previous reply regarding that. |
|
Posted: Wednesday Jun 5th, 2013 at 9:17 pm #51440 | |
|
|
Hi Cristián, thanks for taking a look. The sites are hosted separately, but were using the same DataLink account to connect (944026-all). I was just wondering whether this is okay, or whether they may conflict and pull in each other’s data? In which case, I need to figure out why 944026-0000 and 944026-0001 aren’t doing their jobs. Although it now seems that neither are working and that the password is displaying as xxxxxxxx instead (see ccbill-dl.log). The logs are very confusing to me at the moment. I’m happy to privately provide my DataLink account credentials if this helps troubleshoot what’s going on. |
|
Posted: Thursday Jun 6th, 2013 at 11:40 pm #51558 | |
|
|
You mean in the logs? That’s just for the log, s2Member is using the actual credential you entered in the configuration. Or do you mean the URL you posted at the top of this thread? Where did you get that URL from? If there are no errors in your log, the payment went through fine, the user got created with the paid access, it’d seem the ccBill credentials didn’t have issues.
If they’re separate sites, I think it’s fine. In your ccBill configuration there’s a field for the subaccount s2Member uses by default. In one site you enter 0000 and in the other 0001. [hilite path]Dashboard -› s2Member® -› ccBill® Options -› Account Details -> Client Sub-Account ID[/hilite] |
|
Posted: Friday Jun 7th, 2013 at 6:56 pm #51635 | |
|
|
I think I’ve probably confused you a bit here. The CCBill IPN is working fine, it’s just the DataLink that isn’t. From what I understand the IPN goes from CCBill › my site, whereas the DataLink goes from my site › CCBill. It works on a cron job that pulls in rebill and expiry information for the user accounts. Without it working properly, paid user accounts that have expired will just keep going. Have you got an email address that I can send a commented log file to? |
|
Posted: Tuesday Jun 11th, 2013 at 7:07 pm #51787 | |
|
|
My other site which hasn’t been updated in ages (running s2Member Pro v120608) connects to DataLink with no problems. The other two sites are running latest and both have passwords showing as xxxxxxxx in the URL string. Could point towards it being an issue with the latest version? |
|
Posted: Thursday Jun 13th, 2013 at 12:59 am #51845 | |
|
|
Okay, so in the same URL, the v120608 installation shows the password, while the latest version shows xxxxxxxx, right?
Have you had subscriptions end and s2Member not setting an EOT time for these users? Could you tell me which they are to look for their log entries?
So you’re seeing that in the logs. Did you see the DataLink URL have the password x’ed out elsewhere or just in the logs? Have you asked ccBill if the URL s2Member is using for the DataLink has the correct password or it’s having authentication problems?
You can use the contact form: s2Member® » Private Contact Form I’ll ask Jason about this too, since he’s the one that knows the integration best. |
|
Posted: Thursday Jun 13th, 2013 at 4:08 pm #51899 | |
|
|
I’ve upgraded as far as v120703 and it’s all still working okay. Looking at the changelog, this is the last major release before major updates were made to the DataLink parts of s2Member.
Yes, EOTs were not happening at all before. I’ve had to manually cancel those.
Just in the logs, as that’s the only place I can track them (as it’s a background process). It’s interesting, because it’s not reporting an error code 02 (authentication error) like before. I have a fully commented snippet of a log file that traces where things went wrong which I’ll send through to you. |
|
Posted: Friday Jun 14th, 2013 at 6:27 am #51943 | |
|
|
Thanks, got the email with the commented log file. I’ll forward it to Jason too. |
|
Posted: Monday Jun 17th, 2013 at 5:41 am #52030 | |
|
|
Thanks for the heads up on this thread :-)There are two issues being reported in this thread.
The latest release of s2Member Pro will xxxxxx sensitive information out whenever possible. A password in the log file is NOT what was actually processed; it is what we saved in the log file after concealing sensitive information like passwords (when possible). Some information is NOT concealed, but we make an effort to prevent such things when we can. So this is not an error, it’s to be expected.
This is related to the version of s2Member Pro that was running during each occurrence. Some of the log entries you referenced were running different versions of s2Member Pro. In some previous releases of s2Member Pro, s2Member’s DataLink processor did NOT include &clientSubacc=0000; and this results in ALL sub-accounts being pulled in and processed by s2Member; regardless of sub-account ID. If we don’t send a sub-account ID, ccBill provides data for ALL of them. In the latest release of s2Member Pro, we DO pass &clientSubacc=0000; and this value is set to whatever you configured under s2Member -› ccBill Options. It is always set to that value, regardless of what you put into the Shortcode attribute. We only run DataLink communication for the sub-account that is configured in the Dashboard as the primary sub-account that is being used on the site. If you would like to revert back to pulling ALL data from ALL sub-accounts, please find this section of code. See: /s2member-pro/includes/classes/gateways/ccbill/ccbill-datalink.inc.php at line #79.
Change that to:
and you will have the old behavior back again. In either case, s2Member will ONLY process data it receives from ccBill which matches data it has stored within WordPress® (e.g. it only processes DataLink entries that are associated with transactions/subscriptions locally). Thus, you can have s2Member pull ALL data for all sub-accounts and this will even work across multiple installations of s2Member. So why don’t we have it setup this way by default anymore?The reason is because some ccBill accounts will NOT work properly w/o the &clientSubacc=0000 specification. In some cases we found that ccBill had to be contacted by each site owner to have the ALL sub-accounts functionality enabled. It would appear this has already been enabled on your account, because it was working in the past. |
|
Posted: Monday Jun 17th, 2013 at 11:46 am #52037 | |
|
|
Hi Jason, Thanks for the detailed response, that clears it all up perfectly for me. Just a couple more questions: Firstly, I’ve changed all the above, and now I’m getting an error recorded at stage 1 (see below).
I’ve tested the same string from my browser by allowing my home IP address access from CCBill account admin, which works fine. This therefore suggests it’s a server problem. Any ideas on obvious server problems/fixes? Secondly, what does the /pass mean on the end of the string (password=xxxxxxxx/pass)? |
|
Posted: Tuesday Jun 18th, 2013 at 1:05 am #52067 | |
|
|
Thanks for the follow-up :-)There should be another line that comes just below that entry. Can you please post the error message?
That’s just a marker that s2Member injects to indicate it concealed what it found to be a password. |
This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.