Paypal: ошибка сообщения 403 (response-paypal-button-v2) - PullRequest
0 голосов
/ 06 августа 2020

Итак, я возился с этим несколько дней, но безуспешно.

Примерно в 80% случаев, проверяя Paypal на моем веб-сайте, я получаю ошибку POST 403. Кажется, это происходит случайно, но я понятия не имею, почему это могло произойти. Это, конечно, иногда работает, но вот ошибка, когда это не так:

enter image description here

And here's the code for my button. When the error occours, "onSuccess()" is never called, and the window just kind of closes itself without any warning. onError() or onCancel are never called either, making this a very strange error.

 this.cancelPaypal()} 
onClick={(e) => this.checkCart(e)} 
onError={(e) => { console.log(e); alert("error"); }} 
onSuccess={(details, data) => { 
this.setState({ error: null, succeeded: true, processing: false, loadingIcon: false, });
 }}
options={{
      clientId: myClientId,
      currency: "USD",
      disableFunding: "card,credit",
        }}
/>
------------------------------------------------------------------------

It occurs whenever I click the final "Pay now" button on the Paypal modal. Everything up to that point is fine.

Not sure what to do, I have no clue why this would happen. Since it works sometimes, it can't be a bad id on myPart. Thanks everyone...

EDIT: I don't know what this means, but here is the 'Capture' error when I click the error link: введите описание изображения здесь

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...