React-Native-Paystack-WebView icon indicating copy to clipboard operation
React-Native-Paystack-WebView copied to clipboard

We could not start transaction, currency not supported

Open asadadams opened this issue 3 years ago • 6 comments

We could not start transaction, currency not supported is the message i receive when trying to make payment

asadadams avatar Oct 27 '21 11:10 asadadams

Can you Post the portion of code used

opmat avatar Oct 28 '21 12:10 opmat

<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} />

asadadams avatar Oct 28 '21 16:10 asadadams

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?

opmat avatar Oct 29 '21 00:10 opmat

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"

asadadams avatar Oct 29 '21 10:10 asadadams

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} />

webchyf avatar Nov 13 '21 16:11 webchyf

Not working same error.

vikasnhz avatar Feb 21 '22 12:02 vikasnhz