just1and0 / React-Native-Paystack-WebView

💸💳The package allows you accept payment using paystack and guess what, it doesn't require linking! just install and begin to use 🚀
https://paystack.com
MIT License
152 stars 101 forks source link

I am working with Cs-cart but can't seem to be able to load the #119

Open cartehub opened 1 year ago

cartehub commented 1 year ago

The issue is that I can't seem to be able to get the total "amount" to load from my project on the Paystack payment page.

My code sample is as below, {totaPrice} draws a blank.

export default class extends PureComponent {

static propTypes = { totalPrice: PropTypes.string,

};

render() { const { totalPrice } = this.props; return ( <View style={{flex: 1, marginHorizontal: 15}}> <Paystack style={styles.cartInfoTotal} paystackKey='##' paystackSecretKey= '##' billingEmail='##' billingName='##' activityIndicatorColor='green' amount= '{totalPrice}' onCancel={(e) => { console.log(e);// handle response here }} onSuccess={(res) => { console.log(res);// handle response here }} autoStart={false} />

{totalPrice} //this is just to check that the value of totalPrice is correct before autoloading. ); } }