Giter Club home page Giter Club logo

react-native-mercadopago-checkout's Introduction

react-native-mercadopago-checkout's People

Contributors

jonatansalas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-native-mercadopago-checkout's Issues

Port this library to react-native-create-library project style

I have open this issue because I need to move to a more consistent approach to develop react-native libraries. react-native-create-library is a good approach for this.

This will help to solve troubles around linking this library to android/ios apps.

Dependency problem 'com.android.support:support-v4'

I get the following error when installing the component:
Android dependency 'com.android.support:support-v4' has different version for the compile (27.0.2) and runtime (27.1.1) classpath. You should manually set the same version via DependencyResolution
How do I solve it? Do you need more details? Which ones?

MercadoPagoSDK module not found in ios

In ios give me error "MercadoPagoSDK module not found in ios" in appDelegate.m file of library checkout_mercado_module.
In android its working fine .
And i need it to implement in ios on periority. Please tell me the solution.

"react-native-checkout-mercadopago" or "react-native-mercadopago-checkout" ??

Hi, I'm having problems executing the sample project.
When I try to execute the example it shows me the following error:

/var/www/mp-eatq/node_modules/react-native-mercadopago-checkout/android/src/main/java/com/blackboxvision/reactnative/mercadopagocheckout/MercadoPagoCheckoutEventListener.java:19: error: MercadoPagoCheckoutEventListener is not abstract and does not override abstract method onActivityResult(Activity,int,int,Intent) in ActivityEventListener
public final class MercadoPagoCheckoutEventListener implements ActivityEventListener {
             ^
/var/www/mp-eatq/node_modules/react-native-mercadopago-checkout/android/src/main/java/com/blackboxvision/reactnative/mercadopagocheckout/MercadoPagoCheckoutEventListener.java:82: error: method does not override or implement a method from a supertype
    @Override
    ^
2 errors
:react-native-mercadopago-checkout:compileReleaseJavaWithJavac FAILED

FAILURE: Build failed with an exception.
```

`


TypeError: undefined is not an object (evaluating 'MercadoPagoCheckoutModule.startCheckoutForPayment')]

Hi,

When I try to call startForPayment with this params:

[15:21:47] Object {
[15:21:47]   "backgroundColor": "#F44336",
[15:21:47]   "enableDarkFont": false,
[15:21:47]   "preferenceId": "315157098-042123df-a4a6-4671-ae4e-5e79b9109728",
[15:21:47]   "publicKey": "TEST-92f63d7c-d327-4be5-a6ba-5f14c0417d77",
[15:21:47] }

I get this error:

[15:21:51] [Unhandled promise rejection: TypeError: undefined is not an object (evaluating 'MercadoPagoCheckoutModule.startCheckoutForPayment')]
- node_modules/react-native-mercadopago-checkout/index.js:27:47 in startForPayment$

I don't know what's failing. I've set a log inside the 'startCheckoutForPayment' function in order to be sure that 'params' weren't undefined.

Failure to compile

I tried to install the library today and it was not possible to compile, presenting the following error:

/home/arthur/Programs/teste_mercadopago_1/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values-pt/values-pt.xml:54: warn: ignoring element 'g' with unknown namespace 'rn:oasis:names:tc:xliff:document:1.2'.
/home/arthur/Programs/teste_mercadopago_1/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values-pt/values-pt.xml:55: warn: ignoring element 'g' with unknown namespace 'rn:oasis:names:tc:xliff:document:1.2'.

/home/arthur/Programs/teste_mercadopago_1/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values-es-rPE/values-es-rPE.xml:26: warn: ignoring element 'g' with unknown namespace 'rn:oasis:names:tc:xliff:document:1.2'.
/home/arthur/Programs/teste_mercadopago_1/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values-es-rPE/values-es-rPE.xml:27: warn: ignoring element 'g' with unknown namespace 'rn:oasis:names:tc:xliff:document:1.2'.


> Task :app:mergeDebugResources FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:mergeDebugResources'.
> java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed
  /home/arthur/.gradle/caches/transforms-1/files-1.1/sdk-3.2.0.aar/bebd56aab5f07f0608a4500db1f26cbe/res/values/values.xml:225:5-131: AAPT: warn: ignoring element 'g' with unknown namespace 'rn:oasis:names:tc:xliff:document:1.2'.
      
  /home/arthur/.gradle/caches/transforms-1/files-1.1/sdk-3.2.0.aar/bebd56aab5f07f0608a4500db1f26cbe/res/values/values.xml:226:5-129: AAPT: warn: ignoring element 'g' with unknown namespace 'rn:oasis:names:tc:xliff:document:1.2'.
      
  /home/arthur/.gradle/caches/transforms-1/files-1.1/sdk-3.2.0.aar/bebd56aab5f07f0608a4500db1f26cbe/res/values/values.xml:146:5-149: AAPT: error: duplicate value for resource 'attr/fontStyle' with config ''.
      
  /home/arthur/.gradle/caches/transforms-1/files-1.1/sdk-3.2.0.aar/bebd56aab5f07f0608a4500db1f26cbe/res/values/values.xml:146:5-149: AAPT: error: resource previously defined here.

Versions used:
node: v10.15.3
npm: 6.4.1
react-native-cli: 2.0.1
react-native: 0.59.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.