• Resolved liparikimberly

    (@liparikimberly)


    Shortcode: [mycred_cashcred]

    Payment Method: Bank Transfer

    Is there a way to edit the form elements/titles? so as to ask for user crypto address for payment.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support muddasirhayat

    (@muddasirhayat)

    Hi @liparikimberly,

    Thank you for your patience.

    We have prepared a custom code snippet for your site so the cashCred Bank Transfer payment method can collect crypto payout details (wallet address, network, etc.) instead of standard bank fields.

    Please add the snippet below to your active theme’s functions.php file.

    /**
    * cashCred: Replace Bank Transfer fields with Crypto payout fields.
    * Add this to your active (child) theme functions.php
    */
    add_filter( 'mycred_cashcred_bank_transfer_fields', function( $fields ) {

    return array(
    'crypto_coin' => array(
    'form' => 'select',
    'classes' => 'form-control',
    'lable' => 'Cryptocurrency',
    'options' => array(
    'usdt' => 'USDT',
    'btc' => 'Bitcoin (BTC)',
    'eth' => 'Ethereum (ETH)',
    ),
    ),
    'crypto_network' => array(
    'form' => 'input',
    'type' => 'text',
    'classes' => 'form-control',
    'lable' => 'Network',
    'placeholder' => 'e.g. TRC20, ERC20, Bitcoin',
    ),
    'crypto_address' => array(
    'form' => 'input',
    'type' => 'text',
    'classes' => 'form-control',
    'lable' => 'Wallet Address',
    'placeholder' => 'Enter your crypto wallet address',
    ),
    );

    } );

    /** Change the Payment Settings section title */
    add_filter( 'mycred_cashcred_bank_transfer_title', function( $title ) {
    return 'Crypto Payout Details';
    } );

    /** Rename "Bank Transfer" to "Crypto Payout" in the withdrawal form */
    add_filter( 'mycred_cashcred_setup_gateways', function( $gateways ) {
    if ( isset( $gateways['bank'] ) ) {
    $gateways['bank']['title'] = 'Crypto Payout';
    }
    return $gateways;
    } );

    What this does

    • Replaces default bank fields with Cryptocurrency, Network, and Wallet Address
    • Changes the form heading to “Crypto Payout Details”
    • Renames the payment method from “Bank Transfer” to “Crypto Payout”

    Important notes

    • Users must complete the Payment Settings tab before they can withdraw.
    • All fields shown in the form must be filled in, or cashCred will show “Selected gateway details are incomplete.”
    • In Points → cashCred Gateways → Bank Transfer, set Currency to your payout coin (e.g. USDT) and configure exchange rates as needed.
    • Use Additional Notes in the gateway settings to add payout instructions (supported coins, network warnings, minimum payout, etc.).
    • Always use a child theme so the snippet is not lost when the theme updates.

    If you want different coins or field labels, let us know and we can adjust the snippet for you.

    Thank you

    Thread Starter liparikimberly

    (@liparikimberly)

    Thank you

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

You must be logged in to reply to this topic.