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
153 stars 102 forks source link

We could not start transaction, currency not supported #87

Closed asadadams closed 1 month ago

asadadams commented 2 years ago

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

opmat commented 2 years ago

Can you Post the portion of code used

asadadams commented 2 years ago

<Paystack paystackKey="test" paystackSecretKey="test" billingEmail='test@gmail.com' billingMobile='0819001274387' billingName='Test' channels={["mobile_money"]} amount={'250.00'} onCancel={(e) => { // handle response here }} onSuccess={(res) => { // handle response here }} ref={this.paystackWebViewRef} />

opmat commented 2 years ago

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?

asadadams commented 2 years ago

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"

webchyf commented 2 years ago

add currency as a prop example <Paystack currency="GHS" paystackKey="test" paystackSecretKey="test" billingEmail='test@gmail.com' billingMobile='0819001274387' billingName='Test' channels={["mobile_money"]} amount={'250.00'} onCancel={(e) => { // handle response here }} onSuccess={(res) => { // handle response here }} ref={this.paystackWebViewRef} />

vikasnhz commented 2 years ago

Not working same error.