Comments (1)
Hello, @rutvikwebmobtech!
Please provide all details for card you are using.
I tried next request - and it passed fine:
private void createCharge() {
HashMap<String, String> chargeMetadata = new HashMap<>();
chargeMetadata.put("Order Number", "ORD-1001");
Source source = new Source("card", "10", "20", "4111111111111111", "123");
GoSellAPI.getInstance(AUTH_TOKEN).createCharge(
new CreateChargeRequest
.Builder(10, "KWD", new Redirect("http://myreturnurl.com","http://myposturl.com"))
.source(source)
.statement_descriptor("charge")
.description("Test Transaction")
.metadata(chargeMetadata)
.receipt_sms("96598989898")
.receipt_email("[email protected]")
.build(),
new APIRequestCallback<Charge>() {
@Override
public void onSuccess(int responseCode, Charge serializedResponse) {
Log.d(TAG, "onSuccess createCharge: serializedResponse:" + serializedResponse);
}
@Override
public void onFailure(GoSellError errorDetails) {
Log.d(TAG, "onFailure createCharge, errorCode: " + errorDetails.getErrorCode() + ", errorBody: " + errorDetails.getErrorBody() + ", throwable: " + errorDetails.getThrowable());
}
}
);
}
from gosellsdk-android.
Related Issues (20)
- java.lang.NullPointerException: Attempt to invoke virtual method 'void androidx.appcompat.widget.SearchView.setVisibility(int)' on a null object reference HOT 4
- OTP Page refreshed when came back from the SMS application HOT 3
- [2.4.6] The library doesn't compile HOT 13
- BENEFIT PAY HOT 1
- java.lang.ArrayIndexOutOfBoundsException: HOT 2
- Secret key not working its showing 401 invalid key error HOT 3
- Change the text color of the Cancel button HOT 2
- How to do Payment with already saved cards? in Android and iOS SDK. HOT 3
- Build failed HOT 1
- Card no saved once saved card switch is enable
- I have this error HOT 3
- 401 invalid api key HOT 3
- I have this issue please help
- in android 11 app is crashed HOT 5
- Payment view show automatic when page is load HOT 1
- Fatal Exception: java.lang.NullPointerException HOT 1
- NullPointerException inside CurrenciesActivity
- errorBody{"errors":[{"code":"2104","description":"Invalid API Key"}]} HOT 3
- App getting crash while proceed Payment HOT 1
- fatal: not a git repository (or any of the parent directories): .git
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gosellsdk-android.