Stripe Integration w/ Bancontact

Hello GF Forum,

I have run into a limit of knowledge with Stripe and GravityForms. I have setup everything here and it’s working great: https://www.armeedusalut.be/faire-un-don/soutien-financier/

The client though is based in Belgium and looking to also add Bancontact as an option for payment. Unfortunately, you have to create code to make it work with Gravityforms as stated here: https://stripe.com/docs/sources/bancontact

Is anyone familiar with this and able to help me with this function. I do not mind paying for the help as well. Much appreciated.

From the Gravity Forms documentation, add this to functons.php to work:

add_filter( 'gform_stripe_session_data', function( $session_data, $feed, $submission_data, $form, $entry ) {
    if ( $form['id'] === 4 ) { // set your form id.
        $session_data['payment_method_types'][] = 'bancontact';
    }
 
    return $session_data;
}, 10, 5 );
1 Like