We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum

Forum

Thread tagged as: Question, Shop

cart-property in stripe payment form

I have tried to add a cart-property to the stripe payment form so that I don't need an additional step on checkout. Like so:

<form action="" method="post" app="perch_shop">
   <div class="gift_message">
         <perch:label for="gift_message">
            <perch:input type="textarea" id="gift_message" cart-property="gift_message" />
        </perch:label>
    </div>
    <script src="https://checkout.stripe.com/checkout.js" class="stripe-button" data-key="<perch:shop id="publishable_key" escape="true" />"
        data-amount="<perch:shop id="amount" escape="true" />"
        data-currency="<perch:shop id="currency" escape="true" />"
        data-name="Illustrate my Name"
        data-description="Items (<perch:shop id="amount_formatted" escape="true" />)"
        data-email="<perch:member id="email" escape="true" />">
    </script>
</form>

It does't seem to process the gift_message input though and outputs:

<perch:label for="gift_message">
            <perch:input type="textarea" id="gift_message" cart-property="gift_message">
        </perch:input></perch:label>

Is there something I have done wrong or is it just not possible on that form?

Thanks

Daniel Ruffle

Daniel Ruffle 0 points

  • 2 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

It's not possible on that form - it's not handled by Perch, but by Stripe.

Ok thanks