paymongo
paymongo copied to clipboard
Requiring @babel/runtime
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.
Hello! Thank you for submitting an issue.
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.
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?
Do we have corresponding pod dependencies for React Native? Thank you in advance :)
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.
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?
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.
+1 on having this problem, would love to see this dependency dropped and have a native implementation.
+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.