React-Native-Paystack-WebView
React-Native-Paystack-WebView copied to clipboard
We could not start transaction, currency not supported
We could not start transaction, currency not supported is the message i receive when trying to make payment
Can you Post the portion of code used
<Paystack paystackKey="test" paystackSecretKey="test" billingEmail='[email protected]' billingMobile='0819001274387' billingName='Test' channels={["mobile_money"]} amount={'250.00'} onCancel={(e) => { // handle response here }} onSuccess={(res) => { // handle response here }} ref={this.paystackWebViewRef} />
My first observation is that you should never use your Secret Key in your client-side code and that feature has been billed to be removed. Secondly, you are using Ref, how is the Ref handled?
The secret code is in my .env file. And I am using the ref with a button to trigger billing and that works perfectly but after opening the webview I get the text "We could not start transaction, currency not supported"
add currency as a prop example <Paystack currency="GHS" paystackKey="test" paystackSecretKey="test" billingEmail='[email protected]' billingMobile='0819001274387' billingName='Test' channels={["mobile_money"]} amount={'250.00'} onCancel={(e) => { // handle response here }} onSuccess={(res) => { // handle response here }} ref={this.paystackWebViewRef} />
Not working same error.