Giter Site home page Giter Site logo

Comments (12)

romk1n avatar romk1n commented on August 17, 2024

@shallsaur it is working for me on 3.6.3-0.2.13. Can you provide a snippet of your code and we can try and see what went wrong.

from paypal-cordova-plugin.

shallsaur avatar shallsaur commented on August 17, 2024

@romk1n Thank you for your reply.
Not sure what I can give you to try. I basically just follow the exact instructions given.

$ cordova create MyShop com.mycompany.myshop "MyShop"
$ cd MyShop
$ cordova plugin add https://github.com/paypal/PayPal-Cordova-Plugin
$ cordova platform add android
For Android, copy the libs folder from step 2 to the libs folder in MyShop/platforms/android. (https://github.com/paypal/PayPal-Android-SDK)

Then i copy paste the same exact code from the following links
index.html: https://gist.github.com/romk1n/fdbe7902dd827c1d76a5
index.js: https://gist.github.com/romk1n/fb83a7eb8c04e26cab9f

$ cordova build
Then import the project into Eclipse and ran it from there.
On LogCat is where I see all the error messages.

from paypal-cordova-plugin.

romk1n avatar romk1n commented on August 17, 2024

@shallsaur what happens if you just do cordova run android and in a separate terminal just run adb logcat? also you can use chrome to see the console and step through javascript code. https://developer.chrome.com/devtools/docs/remote-debugging

from paypal-cordova-plugin.

 avatar commented on August 17, 2024

I also followed All Steps For Installing Demo and still not working for me. have anyone any example that can provide me, I would appreciate it very much.

from paypal-cordova-plugin.

romk1n avatar romk1n commented on August 17, 2024

@totherik can you provide more details on what's not working ? what steps have you taken to debug the problem?

from paypal-cordova-plugin.

 avatar commented on August 17, 2024

Yes . I have done all the installation steps but when I run the application and pressed the buy button just does nothing. :(

from paypal-cordova-plugin.

romk1n avatar romk1n commented on August 17, 2024

@tknologyk is that on android or iOS ? Can you use those two files to check ?

index.html: https://gist.github.com/romk1n/fdbe7902dd827c1d76a5
index.js: https://gist.github.com/romk1n/fb83a7eb8c04e26cab9f

from paypal-cordova-plugin.

 avatar commented on August 17, 2024

@romk1n is on android. I do again with that files and still not working. here's the project: https://github.com/tknologyk/MyShop

from paypal-cordova-plugin.

romk1n avatar romk1n commented on August 17, 2024

@tknologyk a few problems i can see in your repository

  1. plugins folder is empty https://github.com/tknologyk/MyShop/tree/master/plugins
  2. the only file in this directory (https://github.com/tknologyk/MyShop/tree/master/www/js) should be index.js since when you run cordova build android the correct files are put by the tools into the right places. i.e. in platform/android/assets. Your one doesn't seem to look right https://github.com/tknologyk/MyShop/tree/master/platforms/android/assets/www/js
  3. you should never copy cdv-plugin-paypal-mobile-sdk.js manually.

from paypal-cordova-plugin.

 avatar commented on August 17, 2024

@romk1n it's works!! really thank you very much :D

from paypal-cordova-plugin.

romk1n avatar romk1n commented on August 17, 2024

@tknologyk you welcome!

from paypal-cordova-plugin.

shallsaur avatar shallsaur commented on August 17, 2024

Managed to get it to work if it is on a page of its own.
Currently I need to use an iFrame just to show that page with the payment button.
Thanks anyways.

from paypal-cordova-plugin.

Related Issues (20)

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.