how to access items within the basket

7 months 2 days ago #315574 by activha
Replied by activha on topic how to access items within the basket
That won't work well. For instance manual refund have no parent_txn_id

I was thinking about using reason_code ? Do you have a defined list for this field ?

Please Log in to join the conversation.

7 months 2 days ago #315577 by krileon
Replied by krileon on topic how to access items within the basket
What do you mean manual refund? Are you refunding from within CBSubs or from within the payment gateway? In all cases parent_txn_id should be set to the transaction it's refunding. reason_code is typically only used for storing API response reasons and isn't used in most gateways so it's of no use for what you're trying to do. You'd use payment_status if you're just trying to check if it's a refund or not since payment_status should be set to Refunded or Partially-Refunded for partial refunds.


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.

7 months 2 days ago #315582 by activha
Replied by activha on topic how to access items within the basket
OK I think we made something usable for Invoice Manager
It is lacking some options to cover the use of invoice template in case of a refund (in our case we use template #3 for credit notes) and it could be enhanced but it does the main job
Hope it could help someone or maybe a starting point for you

File Attachment:

File Name: cbsubsinvo...ager.zip
File Size:6 KB


Thanks for the help
Attachments:

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.408 seconds

Facebook Twitter LinkedIn