How to hide the products & coupon code section of Stripe payment tools?

  • Profile Image
    newpanda
    Asked on June 05, 2017 at 12:43 PM

    ...  including the radio button, all Plan text/price and entire Coupon section should not be visible. I understand that you have a set of fields you get from Stripe and you have all of them contained in the single Payment block, but can I remove those parts via CSS or ?  Thanks!  

    https://www.jotform.com/build/71307423564150

  • Profile Image
    ashwin_d
    Answered on June 05, 2017 at 02:10 PM

    Hello newpanda,

    Yes it is possible to inject custom css code in form to hide the products and coupon code section form payment tool. Please inject the following custom css code in your form to hide the product & coupon code section from payment tool:

    span.form-product-item.hover-product-item {

        display: none;

    }

    div#coupon-container {

        display: none;

    }

    The following guide should help you how to inject custom css code in form:  https://www.jotform.com/help/117-How-to-Inject-Custom-CSS-Codes

    I am not sure how hiding the products will solve your problem. Please note that if no products are selected, the payment will not be processed and the customer will not be created in Stripe dashboard.

    I would suggest you to please explain your requirement a bit more in detail and we will surely help you.

    We will wait for your response.

    Thank you!

  • Profile Image
    Robert
    Answered on June 05, 2017 at 07:07 PM

    ah, I see. In some other types of field you can set a default value. I now see that there's not a choice like that for a Stripe plan. I'm trying to make a form that already assumes the Stripe plan, because I will only have one plan per form. So our user will have already seen the plan price. They would just be clicking a link on our page that pops up the credit card entry area. So no plan selection and no coupon section.  Since we will only have a single plan, can that be assumed when they get to the form?

  • Profile Image
    ashwin_d
    Answered on June 05, 2017 at 10:10 PM

    Hello Robert,

    Since you are fetching the subscription list from your Stripe account, that is the reason why you are unable to make any subscription as default selected. I would suggest you to please manually add a subscription product and you should be able to select that product as default. Please check the screenshot below:

     

    Hope this helps.

    Do get back to us if you have any questions.

    Thank you!