Android Development Tutorial – Drink Shop App part 23 Braintree Payment Payment



Donation link:
Facebook social networking site:
Link assets: (DB static)
#DrinkShopAndroidEDMTDev #AndroidEDMTDev #EDMTDev
In this video, I will be fixing a show of how to integrate Braintree Payment into our app

We will try to build a drink order with Shop back PHPend

Android development tutorial, Android programming …

41 Comments

  1. Reply

    Like Always dear ,u're the best
    i have a one question , card number wich you used , it's a test number ? and if it is , how to verify a real card number ?
    i hope you will see this reply and response me thank you for everything again .

  2. Reply

    anh ơi, em bị lỗi "Transaction Unsuccess" log thì nó ra như vậy ạ :

    BraintreeResultError[errors=[BraintreeErrorValidationErrorCollection/errors:[( )]], params=transaction=type=sale, amount=4.4024E7, paymentMethodNonce=tokencc_bc_hxvh83_fkxpvx_9bg2mr_ny5prr_7n5, options=submitForSettlement=true, message=Amount is an invalid format., creditCardVerification=, transaction=, subscription=, merchantAccount=, verification=]

    không biết là lỗi như thế nào ạ ?
    thanks anh

  3. Reply

    Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91

    is also present at [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory).

    Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:9:5-45:19 to override.

    this error irritates me, i cannot move on to the next

  4. Reply

    Hi, I would like to know how to use the PayPal button in your example, I guess you have only implemented payments with Credit Card. Thank you

  5. Reply

    Its always going to else condition. If I submit order but values are stored in the database but in braintree I am not seeing the result. else
    {
    Toast.makeText(this,"Payment amount is 0 ",Toast.LENGTH_SHORT).show();
    }

  6. Reply

    Hello! Please help me. When I rebuild a project, I get an error
    Android resource linking failed

    D:Androidtest_shopappbuildintermediatesincrementalmergeDebugResourcesmerged.dirvaluesvalues.xml:4806: error: style attribute 'attr/textColorError (aka ru.slagger.test_shop:attr/textColorError)' not found.

    error: failed linking references.

  7. Reply

    Hi Bro, nice video but when I try this it returned Transaction fail
    then error "Class 'Braintree_Transanction' not found" and i follow your steps from
    – braintree_init.php
    – main.php
    – checkout.php

  8. Reply

    i want to add current date and time when the user order products ,i want the date and time go to server but i dont know where to put the code because im still newbie. if you have any idea pls give me some 🙂

  9. Reply

    Sir i have an error. When i Clicked the add card button the app will suddenly closed. This is my error

    E/AndroidRuntime: FATAL EXCEPTION: main

    Process: com.example.sweetdesignsmanila, PID: 29294

    java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=7777, result=-1, data=Intent { (has extras) }} to activity {com.example.sweetdesignsmanila/com.example.sweetdesignsmanila.CustomizeCartActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Exception.getMessage()' on a null object reference

    at android.app.ActivityThread.deliverResults(ActivityThread.java:4631)

    at android.app.ActivityThread.handleSendResult(ActivityThread.java:4675)

    at android.app.ActivityThread.-wrap19(Unknown Source:0)

    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1849)

    at android.os.Handler.dispatchMessage(Handler.java:106)

    at android.os.Looper.loop(Looper.java:187)

    at android.app.ActivityThread.main(ActivityThread.java:7025)

    at java.lang.reflect.Method.invoke(Native Method)

    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:514)

    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:888)

    Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Exception.getMessage()' on a null object reference

    at com.example.sweetdesignsmanila.CustomizeCartActivity.onActivityResult(CustomizeCartActivity.java:218)

    at android.app.Activity.dispatchActivityResult(Activity.java:7511)

    at android.app.ActivityThread.deliverResults(ActivityThread.java:4627)

    at android.app.ActivityThread.handleSendResult(ActivityThread.java:4675) 

    at android.app.ActivityThread.-wrap19(Unknown Source:0) 

    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1849) 

    at android.os.Handler.dispatchMessage(Handler.java:106) 

    at android.os.Looper.loop(Looper.java:187) 

    at android.app.ActivityThread.main(ActivityThread.java:7025) 

    at java.lang.reflect.Method.invoke(Native Method) 

    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:514) 

    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:888) 

    On CustomizeCartActivity.java line 218 here is the code : Log.e("SweetDesign_ERROR",error.getMessage());

  10. Reply

    Hi, I follow all the steps of the tutorial but when I click on the icon of the shopping cart I can see the order but the "Place Order" button is not enabled and the message "Internal Server Error" is displayed

  11. Reply

    Hello since I want to only do payment with card do I only need checkout.php ? And what parts of the code will I need for the android coding

  12. Reply

    Hello, a query, create a PayPal account, then create one in Braintree evaluation, followed all the tutorial steps and throw me error "internal server error, what I'm using to do my tests, as it is not in use is I upload all files to a server in production, I try to upload all the files to the server but it does not upload them, it will be because it is for evaluation, if I upload only the PHP in the corresponding folder.

Leave Comment

Your email address will not be published. Required fields are marked *