Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Georgian Cocora

    (@raster02)

    Hello @miniminimini,

    The Payment Element can only be styled using the Stripe API. They offer instructions about this here: https://docs.stripe.com/elements/appearance-api

    The plugin has a filter which can be used to add those options: pms_stripe_connect_elements_styling

    In your case, you should switch Stripe to the Dark theme to make it fit your website. Here’s some example code that you can add to your website to achieve this:

    add_filter( 'pms_stripe_connect_elements_styling', 'pmsc_custom_stripe_elements_styling' );
    function pmsc_custom_stripe_elements_styling( $args ){

    $args['theme'] = 'night';
    $args['variables'] = [
    'colorPrimary' => '#8561A9'
    ];

    return $args;

    }

    This code can be added to the functions.php file from your child theme or in a custom plugin. The example also changes the primary color of the form, so you could use this to match a color from your website.

    I hope this helps!

    Regards.

    Thread Starter miniminimini

    (@miniminimini)

    thanks!

    could you also help me with translation, backend everything is translated, but in front end words months and days are still in English

    https://drive.google.com/file/d/1AjUMEbQl03zLJDwiIE8e6UbHTrQa7kgF/view?usp=sharing

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.