Stripe error : unable to perform color detection

前端 未结 3 2283
盖世英雄少女心
盖世英雄少女心 2021-02-18 22:00

im currently attempting to integrate Stripe into a little website.

I can see within Firebug, that this get request runs correctly

https://checkout.stripe         


        
3条回答
  •  南旧
    南旧 (楼主)
    2021-02-18 22:29

    So I changed the handler to include another paramter of color and it appears to have resolved the issue.

      var handler = StripeCheckout.configure({
        key: '******************',
        image: '/assets/images/layout-images/stripe-logo.jpg',
        color: 'black',
        token: function(token) {
          // Use the token to create the charge with a server-side script.
          // You can access the token ID with `token.id`
        }
      });
    

    weird as im not quite sure why it wasnt included in the docs.

提交回复
热议问题