Git Product home page Git Product logo

Comments (3)

AllanWLie avatar AllanWLie commented on July 29, 2024

Hi @masterdays

The description is the text that is presented to your customers when they go to the checkout page of your woocommerce. If you want to add or change the default text it is done in the module configuration inside woocommerce.

image

image

from woocommerce.

masterdays avatar masterdays commented on July 29, 2024

Hi Allan,
Thank you for prompt reply.
Sorry for not elaborating my question properly.

My question is about sending data to the payment gateway.
It seems possible to add a description to the product which is bought.. do u have any idea of where to insert this description parameter ?

from woocommerce.

AllanWLie avatar AllanWLie commented on July 29, 2024

Hi again,

Your question is still not clear. Do you want to add a description to the order in the epay administration or du you want to add a description pr. product on the order (Like an invoice) ?

If you want to add it pr. product like an invoice, you can enable this function in the module configuration. (Enable invoice data)

If you want to add a description to the order you will have to add a description element to the payment request array here https://github.com/ePay/woocommerce/blob/master/bambora-online-classic/bambora-online-classic.php#L602.

$epay_args = array(
'encoding' => 'UTF-8',
'cms' => Bambora_Online_Classic_Helper::get_module_header_info(),
'windowstate' => $this->windowstate,
'mobile' => Bambora_Online_Classic_Helper::yes_no_to_int( $this->enablemobilepaymentwindow ),
'merchantnumber' => $this->merchant,
'windowid' => $this->windowid,
'currency' => $order_currency,
'amount' => Bambora_Online_Classic_Helper::convert_price_to_minorunits( $order_total, $minorunits, $this->roundingmode ),
'orderid' => str_replace( _x( '#', 'hash before order number', 'woocommerce' ), '', $order->get_order_number() ),
'accepturl' => Bambora_Online_Classic_Helper::get_accept_url( $order ),
'cancelurl' => Bambora_Online_Classic_Helper::get_decline_url( $order ),
'callbackurl' => apply_filters( 'bambora_online_classic_callback_url', Bambora_Online_Classic_Helper::get_bambora_online_classic_callback_url( $order_id ) ),
'mailreceipt' => $this->authmail,
'instantcapture' => Bambora_Online_Classic_Helper::yes_no_to_int( $this->instantcapture ),
'group' => $this->group,
'language' => Bambora_Online_Classic_Helper::get_language_code( get_locale() ),
'ownreceipt' => Bambora_Online_Classic_Helper::yes_no_to_int( $this->ownreceipt ),
'timeout' => '60',
'description' => 'YOUR DESCRIPTION'
);

Regards Allan

from woocommerce.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.