Giter Club home page Giter Club logo

android-quickstart's People

Contributors

davidvavra avatar dmengelt avatar florinfm avatar fstanis avatar jlugia avatar lesalamandre avatar lucidriscu avatar nalinisewak avatar niallkennedy avatar samhorne avatar slawekkrol avatar stephenmcd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

android-quickstart's Issues

Request Failed

I integrated Google Payments on the Android client, and everything was documented, but when the payment was called, the client prompted "This merchant is not enabled for Google Pay," used "adb-d logcat-s Wallet Merchant Error" on the command line, and promte "Wallet Merchant Error: Error in loadPayment Data: You have not registered" Red to use this API. Double check your Android app or app ".

I've searched for a long time, but I don't know where the problem is.
I need help, thanks , thanks

Progress over the "Complete your purchase" bottom sheet

Hi,

I have recently worked on integrating this functionality into an app and have noticed that the progress that appears above the "Complete your purchase bottom sheet" after pressing the "Continue" button and after passing the biometric prompt, doesn't have rounded edges. I have seen that in other apps as well and I am guessing that it is not coming from my end.

Test In India

Hi Team,

How to test the Google pay in india. If available please provide test card details to authorize the payment.

unexpected developer error please try again later google pay

Hello Friends

I have download google pay sample code from GitHub and setup code in android studio
and I have used Payment gateway tokenization method and just change and add new payment gateway new and merchant id in testing environment

public static final HashMap<String, String> PAYMENT_GATEWAY_TOKENIZATION_PARAMETERS =
new HashMap<String, String>() {
{
put("gateway", "worldpay");

      put("gatewayMerchantId", "xxxxxxxxxxxxx069");
      // Your processor may require additional parameters.
    }
  };

After Run the project, I get below error

unexpected developer error please try again later google pay

How to solve this problem . its very urgent. Please help

Dismiss google pay sheet programmatically

I have unique Bussiness logic requirement where Need to cancel or stop User from proceeding with google pay if timer that is running in Background runs out.

Suppose user clicked Google pay button then we use

AutoResolveHelper.resolveTask<PaymentData>(futurePayTask, this, LOAD_PAYMENT_DATA_REQUEST_CODE)
This should return onactivityresult if user performs cancel or success but I want to forcefully cancel if timer runs out.

alt text

Googlepay is not working in kitkat, Lollipop and marshmallow phones

Process: com.google.android.gms.samples.wallet, PID: 9690
java.lang.NoClassDefFoundError: Failed resolution of: Ljava/util/Optional;
at com.google.android.gms.samples.wallet.PaymentsUtil.getIsReadyToPayRequest(PaymentsUtil.java:205)
at com.google.android.gms.samples.wallet.CheckoutActivity.possiblyShowGooglePayButton(CheckoutActivity.java:111)
at com.google.android.gms.samples.wallet.CheckoutActivity.onCreate(CheckoutActivity.java:92)
at android.app.Activity.performCreate(Activity.java:6609)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1134)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3104)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3261)
at android.app.ActivityThread.access$1000(ActivityThread.java:219)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1735)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:6939)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)
Caused by: java.lang.ClassNotFoundException: Didn't find class "java.util.Optional" on path: DexPathList[[zip file "/data/app/com.google.android.gms.samples.wallet-1/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
at com.google.android.gms.samples.wallet.PaymentsUtil.getIsReadyToPayRequest(PaymentsUtil.java:205) 
at com.google.android.gms.samples.wallet.CheckoutActivity.possiblyShowGooglePayButton(CheckoutActivity.java:111) 
at com.google.android.gms.samples.wallet.CheckoutActivity.onCreate(CheckoutActivity.java:92) 
at android.app.Activity.performCreate(Activity.java:6609) 
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1134) 
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3104) 
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3261) 
at android.app.ActivityThread.access$1000(ActivityThread.java:219) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1735) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:145) 
at android.app.ActivityThread.main(ActivityThread.java:6939) 
at java.lang.reflect.Method.invoke(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:372) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199) 
Suppressed: java.lang.ClassNotFoundException: java.util.Optional
at java.lang.Class.classForName(Native Method)
at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
... 17 more
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available

Crashes when going back

I clicked on G Pay button, and then clicked back. The app keeps on crashing every time I do this.
Used the kotlin example.

Device information:
Android Pie 9.0
Pixel 2 XL

Google pay isReadyToPay method return false

I am using Google Pay isReadyToPay method always returns false. When does method returns false or true? Is Google Pay connected to the Locale?

mPaymentsClient = Wallet.getPaymentsClient(activity,
                new Wallet.WalletOptions
                        .Builder()
                        .setEnvironment(WalletConstants.ENVIRONMENT_TEST)
                        .build());

IsReadyToPayRequest request = IsReadyToPayRequest.newBuilder()
                .addAllowedPaymentMethod(WalletConstants.PAYMENT_METHOD_CARD)
                .addAllowedPaymentMethod(WalletConstants.PAYMENT_METHOD_TOKENIZED_CARD)
                .build();
Task<Boolean> task = mPaymentsClient.isReadyToPay(request);
task.addOnCompleteListener(
                new OnCompleteListener<Boolean>() {
                    public void onComplete(Task<Boolean> task) {
                        try {
                            boolean result =
                                    task.getResult(ApiException.class);
                            if (result == true) {
                                 //show Google as payment option
                            } else {
                                 //hide  Google as payment option
                            }
                        } catch (ApiException exception) {
                        }
                    }
 });

PAYMENT_METHOD_TOKENIZATION_TYPE_DIRECT implementation issue

Hello Greetings,

I'm trying to implement the android pay in my application. But my payment processor is not supporting Android pay so, I'm working on direct payment process using the PAYMENT_METHOD_TOKENIZATION_TYPE_DIRECT method. For this I need on public key for that I am using the below link to create public key
https://developers.google.com/payments/payment-data-cryptography#encrypt-spec but the application is always showing request failed error dialogue in android.
requestfailderror

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.