Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
S

Saboor8802

@Saboor8802
About
Posts
2
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • ANDROID STUDIO The System cannot find the path specified
    S Saboor8802

    I have updated my Android Studio to the Artic Fox Version. After that neither the projects with old Gradle versions running nor the new projects with latest Gradle versions running. Only the following errors appears: Could not install Gradle distribution from 'https: //services.gradle.org/distributions/gradle-7.0.2-bin.zip' After this error I manually downloaded the Gradle 7.0.2, extracted it and Set it as Gradle path in Android Studio > File>Settings>Gradle and choose the option "Use Gradle from Specified Location". But all in vain. Only I can see the following message, when I try to Sync project with Gradle. "The system cannot find the path specified." I have been searching this problem for two days on internet, but nothing worked out for me. Current Path where I have downloaded and extracted the Gradle Distribution is follows F:/Android Gradle/gradle-7.0.2 What mistake I am making?

    Android android help java algorithms question

  • Can't make charge with stripe in android Fire base
    S Saboor8802

    Hello to all! Hope you are fine. I am developing an e-commerce android app and integrating Stripe payment gateway in it and using Google Fire base as real time database. I browsed the official website of stripe and took the source code from there. I used my test key from there. I successfully generated Stripe Token and saved it on my server (i-e Fire base). But I am unable to make an actual charge by using that token. That means no transaction shows on my stripe account. I am pasting my code, guide me what should i do to create/make charge?

    Card cardToSave = cardInputWidget.getCard();
    if (cardToSave == null) {
    Toast.makeText(getActivity(),"Invalid Card Data",Toast.LENGTH_LONG).show();
    // mErrorDialogHandler.showError("Invalid Card Data");
    }
    else{

                    Stripe stripe = new Stripe(MainActivity.mcont, 
                "pk\_test\_XZFc6CW7wmDMl4WWESxtvWd300ibs1wr85");
                    
                          stripe.createToken(
                            cardToSave,
                            new TokenCallback() {
                                public void onSuccess(final Token token) {
                                    // Send token to your server
                                    customer\_ref = 
                               database.getReference("Customers").child(MainActivity.user.getUid());
                                     final String tokenid = token.getId();
    
    
                                              //saving the tokenID on my server(i-e fiebase)
    
                                            final Map params = new HashMap<>();
                                            params.put("amount", paid);
                                            params.put("currency", "usd");
                                            params.put("description", "Example charge");
                                            params.put("source", tokenid);
    
                                            HashMap map = new HashMap();
                                            map.put("StripeToken",tokenid);
                                            customer\_ref.updateChildren(map);
    
                                            try {
                                                // creating charge object
                                                Charge charge = Charge.create(params);
    
    Android tutorial android database sysadmin sales
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups