Skip to Content Skip to Menu

Create subscription invoice externally?

  • cpaschen
  • cpaschen
  • OFFLINE
  • Posts: 328
  • Thanks: 42
  • Karma: 9
5 years 8 months ago #311009 by cpaschen
Create subscription invoice externally? was created by cpaschen
We have a need to create a subscription 'invoice' for payment within CBSubs using an external bit of code. These would all be using an offline/check payment option - which would later be 'processed' when payment is received via manual process in the admin interface.

Is there any existing way (via api etc.) to do that - create a subscription invoice - within CBSubs?
Is there any exiting sample code of something like this?
Or is it best/safe to just add an entry in the _cbsubs_payent_items and _cbsubs_payment_baskets?

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

  • cpaschen
  • cpaschen
  • OFFLINE
  • Posts: 328
  • Thanks: 42
  • Karma: 9
5 years 8 months ago #311180 by cpaschen
Replied by cpaschen on topic Create subscription invoice externally?
Just wondering if anyone can answer me on this?
Is it possible to create an invoice via PHP code somehow?

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

  • krileon
  • krileon
  • OFFLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
5 years 8 months ago #311189 by krileon
Replied by krileon on topic Create subscription invoice externally?
It's of course possible to create a basket (which is an invoice in CBSubs) through PHP, but it's not as simple as calling 1 function and done. It's an entire chain of API calls. We don't have a simple means of doing what you're wanting. I don't have a recommended way of doing this either beyond the API calls for just giving a user a subscription, which does not generate a basket.


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.

  • cpaschen
  • cpaschen
  • OFFLINE
  • Posts: 328
  • Thanks: 42
  • Karma: 9
5 years 8 months ago #311194 by cpaschen
Replied by cpaschen on topic Create subscription invoice externally?
OK. Thanks.

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

Moderators: beatnantkrileon
Powered by Kunena Forum