Releases: processout/processout-android
Releases · processout/processout-android
Release v2.13.1
Release v2.13.0
- APMs: Change the way the user is redirected. Methods now return the Uri to client (
⚠️ Depending of your integration, this might be a breaking change)
Release v2.12.1
- Add public constructors for Gateway objects
Release v2.12.0
APM
Contextshould now be passed as a parameter when callingmakeAPMTokenormakeAPMPaymentmethods.
Ex:
p.makeAPMPayment(apmGatewayConfig, "project-id", this); // this refers to the activty itselfRelease v2.11.2
Small fixes
- Update typo in method name
Release v2.11.1
- Add support for
additionalDatain APMs
Release v2.11.0
Alternative Payment Methods
- Add support for
makeAPMTokenmethod
This allows merchants to update a customer token with a specific APM token.
The documentation has been updated. https://docs.processout.com/payments/alternative-payment-methods-tokenize/
Release v2.10.1
- Improve user-agent for HTTP calls
Refer to https://github.com/processout/processout-android/releases/tag/2.10.0 for migration docs
Release v2.10.0
What's new?
- Support for 3DS challenges in webview inside the app
- Support for
makeCardTokenmethod with card verification - General improvements
Migration
New method
The makeCardToken is now available:
p.makeCardToken("card-token", "customer-id", "token-id", ProcessOut.createDefaultTestHandler(MainActivity.this, new ProcessOut.ThreeDSHandlerTestCallback() {
@Override
public void onSuccess(String tokenId) {
// The card has been verified
}
@Override
public void onError(Exception error) {
// Error
}
}), with);ThreeDSHandler interface
The ThreeDSHandler interface has a new method:
void doPresentWebView(ProcessOutWebView webView);It is called when a web challenge is required. It is up to you to present the webview the way you want.
Deep-links handling
The only case where your app will be re-opened from a deep-link is when dealing with Alternative Payment Methods.
The onCreate method of your Activity should handle it like this:
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Intent intent = getIntent();
Uri data = intent.getData();
if (data != null) {
// Check if the activity has been opened from ProcessOut
String gatewayToken = ProcessOut.handleURLCallback(data);
if (gatewayToken != null)
Log.d("PROCESSOUT", gatewayToken); // Send the token to backend to complete the charge
}
}Release v2.9.1
- Add support for idempotency-key
- Change network retry policy to 15s with a maximum of 2 retries