Giter Club home page Giter Club logo

pagseguro-react's People

Contributors

wanderlima avatar wchagas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

pagseguro-react's Issues

Problemas ao entrar na aba de pagamentos

Instalei, gerei a session, atualizei state. OK.

passei as abas até a de pagamento e então falha uma requisição:

https://ws.sandbox.pagseguro.uol.com.br/payment-methods?callback=callbackPaymentMethods&sessionId=&amount=124.00&Accept=application/vnd.pagseguro.com.br.v1%2Bjson;charset=ISO-8859-1

Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.

Mon Sep 09 13:06:15 BRT 2019
There was an unexpected error (type=Internal Server Error, status=500).
Invalid character '=' for QUERY_PARAM in "application/vnd.pagseguro.com.br.v1%2Bjson;charset=ISO-8859-1"

como integrar com Springboot?

Olá amigo, estou usando spring boot no backend, sou leigo no react, como faço para configurar o axios para pegar a porta 8080 da minha api?

Setar valor do frete

Estou tentando fazer o pagamento e está dando o erro:

installment value invalid value

Se eu adiciono o valor do frete como extraAmount funciona, porém se eu configuro:

$creditCard->setShipping()->setType(1);
$creditCard->setshipping()->setCost(
  number_format($_POST['shipping']['cost'], 2, '.', '')
);

Ele retorna o erro de installment errado, pois eu vou dividir o frete junto na parcela e não é possível.

Inclusive o valor do frete não está forçando duas casas decimais.

Não consigo usar

Criei um app react js e instalei o pacote, mas da um erro

./src/App.js
Module not found: Can't resolve 'pagseguro-react'

Como visualizar o exemplo | localhost:9090

Estou tendo problemas ao visualizar a página http://localhost:9090/ mesmo executando o npm run dev.

Aqui está um print da minha tela com os respectivos avisos que aparecem no console:

console-pagseguro-react

Observações:

  • O meu ambiente de desenvolvimento é o Windows;
  • Instalei todas as dependências, incluindo as peer dependencies localizadas no package.json.

Form não atualiza

As informações editadas na form não mudam e o evento onSubmit é chamado com os estados iniciais

O Pagamento por cartão de crédito está funcionando?

Estou testando em ambiente sandbox, e ao fazer o pagamento com cartão de crédito ele dá erro no Installment Value

installment value invalid value: 182.00

Já tentei diversas vezes e de diversas formas e ele acusa esse erro.
Obrigado

Verificar se CreditCard se está montado

Ao tentar gerar um pagamento ele estoura um erro. tem que verificar se o componente está montado.

componentDidMount() { 
  this._ismounted = true;
}

componentWillUnmount() {
   this._ismounted = false;
}

Provavelmente está acontecendo porque estou tratando a apresentação do componente DirectPayment, ocultando no "re-render" se o status estiver loading == true.

<CreditCard {...this.props} amount={amount} onSubmit={onSubmit} onError={onError} cards={paymentMethods.find(item => item.name == 'CREDIT_CARD').options} />

Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.
in CreditCard (created by DirectPayment/Forms/Payment)
in div (created by Context.Consumer)
in StyledComponent (created by Col)
in Col (created by DirectPayment/Forms/Payment)
in div (created by Context.Consumer)
in StyledComponent (created by Row)
in Row (created by DirectPayment/Forms/Payment)
in div (created by DirectPayment/Forms/Payment)
in DirectPayment/Forms/Payment (created by DirectPayment)
in div (created by Context.Consumer)
in StyledComponent (created by styled.div)
in styled.div (created by DirectPayment)
in div (created by Context.Consumer)
in StyledComponent (created by styled.div)
in styled.div (created by DirectPayment)
in LoadLibrary (created by DirectPayment)
in DirectPayment (created by Checkout)

Ambiente Windows - Problemas ao executar projeto

Olá, @wchagas, eu estou com problemas em rodar o seu projeto.

Primeiramente, a aplicação seria a sua API pagseguro-react? Esse ponto não compreendi muito bem no README.

Ademais, vamos para o problema.
Quando eu executei o comando npm run dev, apareceu o seguinte erro:

run-failed

PS.:

  • Eu estou executando o fork do projeto original;
  • 1º instalei as dependencies e dev dependencies;
  • 2º instalei as peer dependencies manualmente.

react-native/expo

Olá
Gostaria de saber se esse módulo se aplica também para Expo/react-native sem eject, ou se eu teria que usar uma Webview para fazer funcionar.
Obrigado

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.