Click here to Skip to main content
14,634,522 members
Home » Discussions » Android
   

Android

 
AnswerRe: python Pin
Richard MacCutchan18-Jul-19 0:37
mveRichard MacCutchan18-Jul-19 0:37 
AnswerRe: python Pin
Afzaal Ahmad Zeeshan18-Jul-19 0:56
mvaAfzaal Ahmad Zeeshan18-Jul-19 0:56 
QuestionQR camera scan with android phone using C# Pin
A.Shoman15-Jul-19 21:04
MemberA.Shoman15-Jul-19 21:04 
AnswerRe: QR camera scan with android phone using C# Pin
Richard MacCutchan15-Jul-19 21:15
mveRichard MacCutchan15-Jul-19 21:15 
Questiondownload sound file in android webview Pin
Member 1450174330-Jun-19 23:00
MemberMember 1450174330-Jun-19 23:00 
QuestionRe: download sound file in android webview Pin
David Crow3-Jul-19 4:11
MemberDavid Crow3-Jul-19 4:11 
AnswerRe: download sound file in android webview Pin
Member 145017433-Jul-19 4:27
MemberMember 145017433-Jul-19 4:27 
QuestionCan't make charge with stripe in android Fire base Pin
Saboor880220-Jun-19 6:21
MemberSaboor880220-Jun-19 6:21 
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<String, Object> 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);

                                           } catch (AuthenticationException e) {
                                               e.printStackTrace();
                                           } catch (InvalidRequestException e) {
                                               e.printStackTrace();
                                           } catch (APIConnectionException e) {
                                               e.printStackTrace();
                                           } catch (CardException e) {
                                               e.printStackTrace();
                                           } catch (APIException e) {
                                               e.printStackTrace();
                                           }

SuggestionRe: Can't make charge with stripe in android Fire base Pin
David Crow21-Jun-19 3:08
MemberDavid Crow21-Jun-19 3:08 
QuestionAll record from SQLite DB is not inserting properly by using PHP and Android. Loop is not working. Pin
PRASANTA KUMAR BISWAS5-May-19 19:33
MemberPRASANTA KUMAR BISWAS5-May-19 19:33 
SuggestionRe: I am unable to send SQLite data(multiple record) to SQL server 2005 database by using PHP and Android Pin
Richard MacCutchan5-May-19 21:55
mveRichard MacCutchan5-May-19 21:55 
GeneralRe: I am unable to send SQLite data(multiple record) to SQL server 2005 database by using PHP and Android Pin
PRASANTA KUMAR BISWAS5-May-19 23:41
MemberPRASANTA KUMAR BISWAS5-May-19 23:41 
GeneralRe: I am unable to send SQLite data(multiple record) to SQL server 2005 database by using PHP and Android Pin
Richard MacCutchan5-May-19 23:51
mveRichard MacCutchan5-May-19 23:51 
SuggestionRe: All record from SQLite DB is not inserting properly by using PHP and Android. Loop is not working. Pin
Richard Deeming8-May-19 1:34
mveRichard Deeming8-May-19 1:34 
Questionno database data after depolyment Pin
Wiep Corbier29-Apr-19 21:54
MemberWiep Corbier29-Apr-19 21:54 
AnswerRe: no database data after depolyment Pin
Richard MacCutchan29-Apr-19 22:43
mveRichard MacCutchan29-Apr-19 22:43 
GeneralRe: no database data after depolyment Pin
Wiep Corbier29-Apr-19 23:16
MemberWiep Corbier29-Apr-19 23:16 
GeneralRe: no database data after depolyment Pin
Wiep Corbier30-Apr-19 7:29
MemberWiep Corbier30-Apr-19 7:29 
GeneralRe: no database data after depolyment Pin
Mycroft Holmes30-Apr-19 12:31
professionalMycroft Holmes30-Apr-19 12:31 
GeneralRe: no database data after depolyment Pin
Wiep Corbier1-May-19 8:10
MemberWiep Corbier1-May-19 8:10 
AnswerMessage Closed Pin
18-Jun-19 20:02
MemberMember 1450266718-Jun-19 20:02 
Questionandroid Pin
Alazar yikunuamlak11-Apr-19 19:04
MemberAlazar yikunuamlak11-Apr-19 19:04 
AnswerRe: android Pin
Richard MacCutchan11-Apr-19 20:31
mveRichard MacCutchan11-Apr-19 20:31 
AnswerMessage Closed Pin
9-Jun-19 21:23
MemberFrances Murphy9-Jun-19 21:23 
QuestionHow to get URL from a browser(Chrome, Firefox…) while sharing highlighted text on react native app? Pin
Member 1418193013-Mar-19 22:56
MemberMember 1418193013-Mar-19 22:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.