Update Stripe data-amount

后端 未结 3 1815
终归单人心
终归单人心 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:50

    Turns out that to have a dynamic data-amount for the stripe payment, you have to use Custom Checkout instead of Simple Checkout. This code did the trick.

          
    
          
    

提交回复
热议问题