• Resolved vincentjolanda

    (@vincentjolanda)


    Hello,
    with the field:
    _direct_debit_iban
    I get a strange number output like so:

    xyxyf50200cca5fb442a1e704.......

    (couldn‘t paste in the full number because the “submit” button disappeared after that 🙂
    Similar number the _direct_debit_bic field.
    Why is that? I need the original iban/bic numbers to export. I didn‘t find a variation of this field at /cart > /add field
    Can you help?
    best regards
    vincent

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author algol.plus

    (@algolplus)

    Hello

    ACF adds 2 keys .
    please use key “direct_debit_iban”.

    Thread Starter vincentjolanda

    (@vincentjolanda)

    Wow, thanks for this quick reply!

    It doesn‘t offer me the key as you suggested. I‘ve been looking for it, I know about this from other fields … it should be inside the /cart, right? There are no such keys, without “_” at the beginning.

    I also tried “or use meta here” with “direct_debit_iban”, but with the same result

    Plugin Author algol.plus

    (@algolplus)

    hello
    What plugin adds key _direct_debit_iban ?

    please, run phpMyAdmin and review records in table wp_postmeta.
    probably, you will find correct key

    Thread Starter vincentjolanda

    (@vincentjolanda)

    What you mean?

    What plugin adds key _direct_debit_iban ?

    the plugin is: Advanced Order Export For WooCommerce (Pro), right?
    I don‘t know if I understand you right.

    I checked database, but didn‘t find nothing concerning direct_debit.
    I mean, I found recently added entries concerning product purchase (with the wrong iban numbers)

    further suggestions?

    regards

    Plugin Author algol.plus

    (@algolplus)

    Yes, I know name of my plugin 🙂
    What plugin adds IBAN/BIC information for the order ?

    Thread Starter vincentjolanda

    (@vincentjolanda)

    Sorry, I know that you know :)…. you have been very helpful already in the past! … I simply didn‘t understand the question.

    It is Germanized Pro which adds IBAN/BIC (Direct debit scheme (SEPA))

    Plugin Author algol.plus

    (@algolplus)

    Could you submit Germanized Pro(zip file) as new ticket to https://algolplus.freshdesk.com/ ?

    I should review its code to understand how to get correct IBAN value.

    Thread Starter vincentjolanda

    (@vincentjolanda)

    Hi, issue solved by adding this code, provided by the plugin author, to the “Misc Settings” section:

    add_filter('woe_get_order_value__direct_debit_iban',function ($value, $order,$fieldname) {
        $gateway = class_exists( 'WC_GZD_Gateway_Direct_Debit' ) ? new WC_GZD_Gateway_Direct_Debit() : false;
        if ( $gateway && is_callable( array( $gateway, 'maybe_decrypt' ) ) ) {
            $value = $gateway->maybe_decrypt( $value );
        }
        return $value;
    },10,3);
    add_filter('woe_get_order_value__direct_debit_bic',function ($value, $order,$fieldname) {
        $gateway = class_exists( 'WC_GZD_Gateway_Direct_Debit' ) ? new WC_GZD_Gateway_Direct_Debit() : false;
        if ( $gateway && is_callable( array( $gateway, 'maybe_decrypt' ) ) ) {
            $value = $gateway->maybe_decrypt( $value );
        }
        return $value;
    },10,3);

    regards and thanks for the quick support to the author!

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘_direct_debit_iban’ is closed to new replies.