Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature/verify_and_fix_v4 #28

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,10 @@ public static void setCheckout(String checkout_id) {
AplazameSDK.checkout_id = checkout_id;
}

public static String getCheckoutId() {
return AplazameSDK.checkout_id;
}

private static void checkAplazameSdkConfiguration() {
if (aplazameApiManager == null) {
activity.finish();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.aplazame.sdk.network.api;

import com.aplazame.sdk.AplazameSDK;
import com.aplazame.sdk.BuildConfig;
import com.aplazame.sdk.network.authenticator.AuthInterceptor;
import com.aplazame.sdk.network.model.CheckoutAvailabilityDto;
Expand All @@ -26,7 +27,7 @@ public class AplazameApiManager {
private Boolean debug;
private static final String BASE_URL = "https://api.aplazame.com/";
private static final String INITIALIZE_CHECKOUT_URL =
"https://checkout.aplazame.com/?public-key=%1$s&post-message=true&platform-name=android&platform-version=%2$s&module-name=aplazame&module-version=%3$s&sandbox=%4$s";
"https://checkout.aplazame.com/?public-key=%1$s&platform-name=android&platform-version=%2$s&module-name=aplazame&module-version=%3$s&sandbox=%4$s&order=%5$s";
private static final String ANDROID_JS_INTERFACE_NAME = "AplazameAndroidSDK";

private static final String POST_MESSAGE_CHECKOUT_DATA =
Expand Down Expand Up @@ -101,7 +102,9 @@ public String initializeCheckoutUrl() {
token,
android.os.Build.VERSION.SDK_INT,
moduleVersion,
debug ? "true" : "false");
debug ? "true" : "false",
AplazameSDK.getCheckoutId()
);
}

public String addEventListener() {
Expand Down