paymill / paymill-android Goto Github PK
View Code? Open in Web Editor NEWPAYMILL Mobile SDK for Android
PAYMILL Mobile SDK for Android
When you try to buy/reserve/generate token for a custom voucher, there is validation for the fields, but the error messages are empty.
Currently all possible credit card types are enabled with the default Setting. Instead, only the card types supported by PAYMILL should be enabled by default.
I've already asked it in yours support but it looks like here I can get answer faster.
I'm expecting some issues with integration of Pymill SDK into my Android appplication. I only need to be able to pay for some items so I want to use Payment screens.
First of all there different quickstart docs
here - http://paymill.github.io/paymill-android/docs/sdk/reference/packages.html
and here - https://www.paymill.com/en-gb/documentation-3/add-ons/mobile-sdk/
I don't undertand which method I need to use so I used documentation from http://javadoc.paymill-mobile.com/reference/packages.html cause it looks newer (at least activity name is correct).
I created android library for using Payment screens. I declared activity in my minifest file like this:
<activity
android:name="com.paymill.android.payment.PaymentActivity"
android:screenOrientation="portrait" />
and service like this:
<service
android:name="com.paymill.android.service.PMService"
android:enabled="true"
android:exported="false"
Internet permission is added too.
Here's how I'm trying to make a payment:
PMPaymentParams params = PMFactory.genPaymentParams(CURRENCY,
(int) order.orderData.total * 100, null);
Intent intent = PaymentActivity.Factory.getTransactionIntent(mContext,
params, true);
// create the intent and start the activity.
mContext.startActivityForResult(intent, PaymentActivity.REQUEST_CODE);
and in my Application subclass I initialize PMManager like this:
PMManager
.init(this, AppConstants.IS_RELEASE ? ServiceMode.LIVE
: ServiceMode.TEST, AppConstants.PAYMILL_PUBLIC_KEY,
null, null);
(tried also non null BackgroundListener but actually I don't need it).
Payment screen appeares. I used test credentials but result object tells me about BRIDGE error with name INVALID_HOLDER and I can't find out what is it and how to fix it.
It looks like it's possible to generate PMPaymentParams only for integer amout. But what If I need to proceed with for example 10.56 EUR?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.