#keyur-android-help
1 messages · Page 1 of 1 (latest)
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
you gave me 120 seconds
no problem
Please wrap your code with three ` before and after to make it readable
(thanks)
What docs are you following?
ohh docs
stripe
Sure, but which one exactly. There are numerous paths to integrate. https://stripe.com/docs/payments/accept-a-payment?platform=android for example is our official and canonical example doc
You seem to use something older/less documented and I'm trying to figure out where you got the code from and what you missed
Also what exact version of Android are you using and which version of stripe-android?
i when i join this project
it was already implimented
implementation 'com.stripe:stripe-android:15.0.1'
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?
got crash on live app
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
app is working fine,but this error occurs often
like every month
ah gotcha
any help