Skip to content

[Feature]: Configurable payment types with custom options #3232

Open

Description

@nyenius

Background information

IMPORTANT: If you choose to ignore this issue report template, your issue will be closed as we cannot help without the requested information.

Please make sure you tick (add an x between the square brackets with no spaces) the following check boxes:

  • Reporting an issue of an unmodified OSPOS installation
  • Checked open and closed issues and no similar issue was already reported (please make sure you searched!)
  • Read README, WHATS_NEW, INSTALL.md and UPGRADE
  • Read the FAQ for any known install and/or upgrade gotchas (in specific PHP extensions installed)
  • Read the wiki
  • Executed any database upgrade scripts if an upgrade pre 3.0.0 (e.g. database/2.4_to_3.0.sql)
  • Aware the installation code is in bintray (see README), and GitHub master is for developers only and therefore not complete nor stable

Installation information

  • OSPOS version is: 3.3.4
  • OSPOS git commit hash is: (idk, from softaculous)
  • PHP version is: 7.3.28
  • MySQL or MariaDB version is: 5.7.34
  • OS and version is: linux
  • WebServer is: Apache 2.4.48
  • Selected language is: English
  • (If applicable) Docker installation:
  • (If applicable) Installation package for the LAMP/LEMP stack is:

Personal Modification

OSPOS payment types are hardcoded, and quite scattered on some files. I've added some line of code on two files so it fits more to my needs (that is more detailed payment types).

Edited files:

application/helpers/locale_helper.php
image
added additional payment types in get_payment_options() function (line 247)

application/views/configs/locale_config.php
image
added the additional payment types in ospos Localization configuration dropdown menu

Results:

telegram-cloud-photo-size-5-6273826993657195632-x
Custom payment types in sales register

image
Payment Type Configuration to chose

This is a temporary fix, and I write it here for my personal change log and don't know if anybody need it (like issue #978)

Activity

  1. stellarcheese commented on Jul 9, 2021

    @stellarcheese

    Nice enhancement, I offer Venmo payment now so this will make an easy implementation

  2. joanne-nut commented on Jan 5, 2022

    @joanne-nut

    I tried this, and it took our POS system down (I easily resurrected it though!). We are running OSPOS version 3.3.5, so no idea if that would effect the desired out come. Any assistance appreciated, as we need to add payment types; BACs, Online Card, PayPal and Cheques. Thanks in advance

  3. dme1sc commented on Mar 1, 2022

    @dme1sc

    Very nice. I have a working bitcoin on lightning network payment method that I will PR soon - or have the steps to build it.

  4. nyenius commented on May 27, 2022

    @nyenius
    Author

    I tried this, and it took our POS system down (I easily resurrected it though!). We are running OSPOS version 3.3.5, so no idea if that would effect the desired out come. Any assistance appreciated, as we need to add payment types; BACs, Online Card, PayPal and Cheques. Thanks in advance

    Is there an error code or message?

  5. joanne-nut commented on May 27, 2022

    @joanne-nut

    I tried this, and it took our POS system down (I easily resurrected it though!). We are running OSPOS version 3.3.5, so no idea if that would effect the desired out come. Any assistance appreciated, as we need to add payment types; BACs, Online Card, PayPal and Cheques. Thanks in advance

    Is there an error code or message?

    No error, it just wouldn't load the page. Still hoping on a solution though, as I am currently putting BAC's and Online Card payments under Credit Card, and Card payments under Debit Card.

  6. nyenius commented on May 27, 2022

    @nyenius
    Author

    Only 2 files needed to be edited:

    • application/helpers/locale_helper.php
    • application/views/configs/locale_config.php
    • application/models/Receiving.php (optional for me)

    Try to add the aditional code carefuly. I you get blank page, I'm sure there's something wrong with the code added.

  7. joanne-nut commented on May 27, 2022

    @joanne-nut

    Thank you for that, I will try it on our prototype site first. :)

  8. nukerj commented on Mar 14, 2023

    @nukerj

    News Payments Method from BD and multi Currency 💲💵
    It's NioPos by Andriux990 and me, powered by OSPOS

    If you need it contact me to

    telegram. @JVilchez
    WhatsApp. +584126447407
    Email [email protected]

    VID_20230314_034104.mp4
  9. changed the title [-]Add More Detailed Payment Types on OSPOS[/-] [+][Feature]: Configurable payment types with custom options[/+] on Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions