設定電子支付 Callback SchemeUrl
廠商 APP 自定義的 URL Scheme,於呼叫 createPayment API 時提供。當消費者於外部瀏覽器完成 TWQR 交易授權後,站內付2.0 server 將透過此 SchemeUrl 喚回廠商 APP,並將付款結果回傳。
請確保此 Scheme 已於 APP 端正確註冊,否則將無法完成喚回流程。。
ECPayPaymentGatewayManager.sharedInstance().setAppIdentifier(AppIdentifier: appIdentifier)
帶入參數
AppIdentifier String
廠商自定義名稱 必填
廠商自定義名稱,用於 TWQR 交易授權後續callback流程使用
設定電子支付 Callback SchemeUrl使用範例
public void setTitleBarBackgroundColor(){
boolen check = PaymentkitManager.setTitleBarBackgroundColor(mActivity, "#02DF82");
UIUtil.showAlertDialog(mActivity,title:"提醒您",check?"設定成功":"設定失敗",new DialogInterface.OnClickListener(){
@Override
public void OnClick(DialogInterface dialog, int which){
}
},rightButtonName:"確定");
}