Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

We could not start transaction, currency not supported #87

Open
asadadams opened this issue Oct 27, 2021 · 6 comments
Open

We could not start transaction, currency not supported #87

asadadams opened this issue Oct 27, 2021 · 6 comments

Comments

@asadadams
Copy link

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

@opmat
Copy link
Contributor

opmat commented Oct 28, 2021

Can you Post the portion of code used

@asadadams
Copy link
Author

<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
Copy link
Contributor

opmat commented Oct 29, 2021

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
Copy link
Author

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
Copy link

webchyf commented Nov 13, 2021

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
Copy link

Not working same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants