Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

React can not POST

$
0
0

I have using a payment service.And this service posts a token to a react page.But the page showing CAN NOT POST error.enter image description here

Posted url is Callbackurl.The service posts the token correctly.There is no problem here.

And this is my react code of the requested url:

import React from "react";import { connect } from "react-redux";import { RootState } from "../../store/reducer";import { bindActionCreators, Dispatch } from "redux";import { History } from "history";interface OwnProps {  history: History<any>;}function mapStateToProps(state: RootState) {  return {    language: state.system.language,    systemUserInfo: state.system.userInfo,    formData: state.form.formData,  };}function mapDispatchToProps(dispatch: Dispatch) {  return {    ...bindActionCreators(      {      },      dispatch    ),  };}type HomeProps = ReturnType<typeof mapStateToProps> &  ReturnType<typeof mapDispatchToProps> & OwnProps;class Pay extends React.Component<HomeProps> {  render() {    return (<div className="mt-5"><div className="container"><div className="row"><div className="col-md-8 mt-5"><div className="row"><div className="card"><div className="card-body">Ödeme İşlemi Onaylandı.</div></div></div></div></div></div></div>    );  }}export default connect(mapStateToProps, mapDispatchToProps)(Pay);

And this is the error:

enter image description here


Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>