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

카카오페이 최종 결제 안되는 문제 수정 #48

Merged
merged 4 commits into from
Sep 30, 2021
Merged
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 @@ -4,6 +4,7 @@
import android.app.Application;
import android.content.Intent;
import android.os.Bundle;
import android.webkit.CookieManager;
import android.webkit.WebSettings;
import android.webkit.WebView;

Expand All @@ -27,7 +28,11 @@ protected void onCreate(Bundle savedInstanceState) {
WebSettings settings = webview.getSettings();
settings.setJavaScriptEnabled(true);
settings.setDomStorageEnabled(true);
settings.setCacheMode(WebSettings.LOAD_CACHE_ELSE_NETWORK);
settings.setCacheMode(WebSettings.LOAD_NO_CACHE);

CookieManager cookieManager = CookieManager.getInstance();
cookieManager.setAcceptCookie(true);
cookieManager.setAcceptThirdPartyCookies(webview, true);

webview.loadUrl(IamportCapacitor.WEBVIEW_PATH);
webview.setWebChromeClient(new IamportWebChromeClient());
Expand Down
3 changes: 2 additions & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@
]
},
"devDependencies": {
"@capacitor/cli": "1.3.0"
"@capacitor/cli": "1.3.0",
"jetifier": "^2.0.0"
},
"description": "An Ionic project"
}
5 changes: 4 additions & 1 deletion src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@ export class IMP implements IamportCapacitorPlugin {
const newOptions = {
type: 'certification',
userCode,
data,
data: {
...data,
m_redirect_url: REDIRECT_URL,
},
triggerCallback: this.triggerCallback,
redirectUrl: REDIRECT_URL,
};
Expand Down