Update Stripe data-amount

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

    OR you can just use the following code before clicking the stripe button ;-)

    StripeCheckout.__app.configurations.button0.amount = 1234;
    
    $('#stripe-button').click();
    

提交回复
热议问题