paymongo icon indicating copy to clipboard operation
paymongo copied to clipboard

Requiring @babel/runtime

Open dayvough opened this issue 4 years ago • 9 comments

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.

dayvough avatar Jun 27 '20 12:06 dayvough

Hello! Thank you for submitting an issue.

jofftiquez avatar Jun 27 '20 12:06 jofftiquez

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.

dayvough avatar Jun 27 '20 12:06 dayvough

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?

buonzz avatar Jun 27 '20 16:06 buonzz

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

kimberleyvarona avatar Jun 30 '20 11:06 kimberleyvarona

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 avatar Sep 04 '20 11:09 jofftiquez

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?

jofftiquez avatar Sep 04 '20 11:09 jofftiquez

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.

kimberleyvarona avatar Sep 11 '20 11:09 kimberleyvarona

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

digipigeon avatar Mar 24 '21 14:03 digipigeon

+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.

jofftiquez avatar Mar 25 '21 02:03 jofftiquez