Update Stripe data-amount

后端 未结 3 1811
终归单人心
终归单人心 2020-12-10 04:30

I\'m implementing Stripe into a django website and everything is working except for one part. In my cart, users can update the items which changes the total. Everything is w

3条回答
  •  时光取名叫无心
    2020-12-10 04:56

    As @awwester said, you can use Stripe's Custom Checkouts. Although, I found an easier way to do this through jQuery simply by remounting the script with the changed variable each time they increase the quantity:

    $("#stripe-form").html(
      ''
    );
    

提交回复
热议问题