#keyur-android-help

1 messages · Page 1 of 1 (latest)

strong nacelle
#

@glass imp can you share some code?

glass imp
#

sure
just min

#

@strong nacelle

#
try {
            ApplicationInfo ai = getPackageManager().getApplicationInfo(this.getPackageName(), PackageManager.GET_META_DATA);
            Bundle bundle = ai.metaData;
            final String baseUrl = bundle.getString("paymentServiceUrl");

            Bundle arguments = getIntent().getExtras();

            if (arguments != null){
                final String customerID = arguments.getString("customerID");
                final String token = arguments.getString("token");

                if (customerID != null && token != null){
                    api = new PaymentService(baseUrl, token);
                    CustomerSession.initCustomerSession(getApplicationContext(), new ParkChampEphemeralKeyProvider(baseUrl, token, customerID, PaymentMethodsActivity.this));

                }
            }

        } catch (PackageManager.NameNotFoundException e) {
            EventLogger.handleError(this, "Failed to load meta-data, NameNotFound: " + e.getMessage());
        } catch (NullPointerException e) {
            EventLogger.handleError(PaymentMethodsActivity.this, "Failed to load meta-data, NullPointer: " + e.getMessage());
        }```
#

any thing @strong nacelle

strong nacelle
#

you gave me 120 seconds

glass imp
#

no problem

strong nacelle
#

Please wrap your code with three ` before and after to make it readable

#

(thanks)

#

What docs are you following?

glass imp
#

ohh docs
stripe

strong nacelle
#

Also what exact version of Android are you using and which version of stripe-android?

glass imp
#

i when i join this project
it was already implimented

#

implementation 'com.stripe:stripe-android:15.0.1'

strong nacelle
#

Okay so are you the sole developer of this app now? Is someone else helping? Is this the first time you build the app and it just doesn't work or are you making changes to the app? What's the context behind your ask?

glass imp
#

got crash on live app

strong nacelle
#

what does that mean though?

#

HAs the app never worked ever? Is this the first time you ever run it?

#

I'm sorry, I need way more details surrounding your ask to help you

glass imp
#

app is working fine,but this error occurs often
like every month

strong nacelle
#

ah gotcha

glass imp
#

any help