Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resource: net::ERR_BLOCKED_BY_CLIENT on payment clicked #37

Open
dheerajbhaskar opened this issue Jun 24, 2015 · 4 comments
Open

resource: net::ERR_BLOCKED_BY_CLIENT on payment clicked #37

dheerajbhaskar opened this issue Jun 24, 2015 · 4 comments

Comments

@dheerajbhaskar
Copy link

I don't know why I'm getting these errors. The payment works though (I'm in test mode). I'm only asking because this is payment related, else I would not bothered as long as it worked.

This is what I see in console

Payment button clicked
https://q.stripe.com/?event=checkout.outer.open&rf=http%3A%2F%2Flocalhost%3…tinct_id=54c691b1-1760-7355-d2f4-7c92acc53ceb&h=720&w=1280&i=1435143509158 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
https://api.mixpanel.com/track/?ip=1&img=1&data=eyJldmVudCI6ImNoZWNrb3V0Lm9…wib3B0aW9uLXN1cHBvcnRzVG9rZW5DYWxsYmFjayI6ZmFsc2UsImgiOjcyMCwidyI6MTI4MH19 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
https://q.stripe.com/?event=checkout.open&rf=http%3A%2F%2Flocalhost%3A3000%…-supportsTokenCallback=false&h=720&w=1280&lsid=DNT&cid=DNT&i=1435143510164 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
https://api.mixpanel.com/track/?ip=1&img=1&data=eyJldmVudCI6ImNoZWNrb3V0LmN…9wdGlvbi1zdXBwb3J0c1Rva2VuQ2FsbGJhY2siOmZhbHNlLCJoIjo3MjAsInciOjEyODB9fQ== Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
https://q.stripe.com/?event=checkout.close&rf=http%3A%2F%2Flocalhost%3A3000…-supportsTokenCallback=false&h=720&w=1280&lsid=DNT&cid=DNT&i=1435143513716 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT

This is my eventmap

event.preventDefault();

console.log('Payment button clicked');

var self = this; //get the data context/ template
var currency = 'inr';

// * 100 because this is in cents/paise; * 0.1 because only 10% advance needs to be taken
var advance = self.priceEstimate * 100 * 0.1;

StripeCheckout.open({
  key: 'pk_test_nc8D3LA65cujo3z00LaBgr9x',

  token      : function (token) {
    stripeToken = token.id;
    console.info(token);
    Meteor.call('chargeCard', stripeToken, advance, currency);
  },
  //amount: 5000, // this is equivalent to $50
  amount     : advance, // this is equivalent to $50
  name       : 'Appskart',
  description: event.currentTarget //button
    .parentElement //div text-right
    .parentElement //li element
    .childNodes[1] //h4 element (has app name)
    .innerText // the app name
  ,
  panelLabel : 'Pay Advance',
  currency   : currency
});

This is the relevant part of my template:

  <a class="payment-button">Pay Advance</a>
@achtan
Copy link

achtan commented Sep 16, 2015

net::ERR_BLOCKED_BY_CLIENT is from adBlock

@stefanocudini
Copy link

I ' has same problem... adBlock and uBlock filter an a specific hash generated from Meteor

disable localhost in this extension

@yashsabal
Copy link

did you find the solution

@ThakurSaad
Copy link

In my case. I have uBlock Origin, Privacy Badger, AdBlock. I tested all three and it was happening for uBlock Origin. But when AdBlock and Privacy Badger is on there is no error.

I noticed that it varies from machine to machine which type of adblock is causing the error. Is there any specific reason for that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants