Skip to Content Skip to Menu

How is subscription ID showing up after transaction with Authorize.net?

10 years 7 months ago - 10 years 7 months ago #242213 by prestoproducts
After submitting a test basket, I get the following message:

“Thank you for your payment of USD X.00 for the Demo Subscription 2 for demo using a Visa Credit Card. Your payment has been completed with transaction id 2ABC911458 and with subscription id 2238120.”

Here is the URL that is serving this page:
Code:
../index.php/profile/pluginclass?plugin=cbpaidsubscriptions&cbpgacctno=1&cbppdtback=fee5857d6fe51cc2286653a5e9f638fa&cbpbasket=2&result=paynow&cbpid=cbp531c9a22ce2c0166068312

I see that the subscription id is correct when I review it against the sandbox.authorize.net account. For some reason this value is not submitted to the demo joomla site’s database for ‘subscr_id’.

When I check the string in the language file I see “Your payment has been completed with subscription id %s.” This makes me think that the %s is a string built from one of the values posted in the URL. Is that correct? If so, how can I decrypt that value to pass through a custom “thank you” page form?
Last edit: 10 years 7 months ago by prestoproducts.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 7 months ago #242231 by krileon
It comes from the baskets subscr_id. It doesn't come from anywhere else. Maybe reviewing the wrong basket or wrong database table? Please be sure to review the _cbsubs_payment_baskets database table. The column subscr_id should be populated with their subscription id.

You can confirm this by reviewing the function getTxtNextStep within components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/controllers/cbpaidPayHandler.php.


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.
The following user(s) said Thank You: prestoproducts

Please Log in or Create an account to join the conversation.

10 years 7 months ago #242336 by prestoproducts
Yup, I was looking at the wrong table. I see 'subscr_id' as well in '_cbsubs_payments'. When does this get populated with the 'subscr_id'?

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 7 months ago #242367 by krileon
It's populated once the payment IPN comes through from the gateway. In the case of Authorize.net it should come through immediately after the payment is successfully made.


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 or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum