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

Requiring @babel/runtime #19

Open
dayvough opened this issue Jun 27, 2020 · 9 comments
Open

Requiring @babel/runtime #19

dayvough opened this issue Jun 27, 2020 · 9 comments

Comments

@dayvough
Copy link

After installing paymongo on an empty express app and running the ff code, it errors out.

const paymongo = require("paymongo");

Something similar to this link.

@jofftiquez
Copy link
Member

Hello! Thank you for submitting an issue.

@dayvough
Copy link
Author

I don't think I need to make another issue for this one but there's another typo I found in the paymentMethods area

{
  data: {
    attributes: {
      type: 'card' // The only available type for now is 'card'.
      details: {
        card_number: '4343434343434345',
        exp_month: 02,
        exp_year: 23,
        cvc: '123',
      }
    }
  }
}

After the type: 'card' part, it's missing a comma.

@buonzz
Copy link

buonzz commented Jun 27, 2020

the only way im able to get it to work is by requiring the runtime in my app explicitly
npm i @babel/runtime
is this the intended use-case for this?

@kimberleyvarona
Copy link

Do we have corresponding pod dependencies for React Native? Thank you in advance :)

@jofftiquez
Copy link
Member

the only way im able to get it to work is by requiring the runtime in my app explicitly
npm i @babel/runtime
is this the intended use-case for this?

Hello, it's not the intended use-case, but it's one way to fix this. I will look into this. Thanks.

@jofftiquez
Copy link
Member

Do we have corresponding pod dependencies for React Native? Thank you in advance :)

Hello @kimberleyvarona none so far, however, I don't see the purpose of have one. This package is explicitly for node server use only. I'm not quite familiar with React Native, but is it possible to use this in React Native?

@kimberleyvarona
Copy link

Ohh I see. I found some community contribution to React Native library providing support with Paymongo. But I believe it would be best if it would be coming from you guys. By the way, I manage to play around with the API and use Webview for the meantime.

@digipigeon
Copy link

+1 on having this problem, would love to see this dependency dropped and have a native implementation.

@jofftiquez
Copy link
Member

+1 on having this problem, would love to see this dependency dropped and have a native implementation.

I'll add this to the pipeline. Thanks.

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

No branches or pull requests

5 participants