Skip to content

Commit

Permalink
Resolved conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
shahbaz-payu committed May 18, 2021
2 parents 68dd7d7 + e7f2974 commit cdd1f88
Show file tree
Hide file tree
Showing 83 changed files with 319 additions and 277 deletions.
35 changes: 8 additions & 27 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,46 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.payu.custombrowser"
android:versionCode="41"
android:versionName="7.6.1" >
android:versionCode="48"
android:versionName="7.8.0" >

<uses-sdk
android:minSdkVersion="15"
android:targetSdkVersion="27" />
android:minSdkVersion="19"
android:targetSdkVersion="29" />

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

<!-- Permission Disabled -->
<!-- <uses-permission -->
<!-- android:name="android.permission.RECEIVE_SMS" -->
<!-- android:protectionLevel="signature" /> -->
<application android:usesCleartextTraffic="false" >

<application android:usesCleartextTraffic="false">
<activity
android:name="com.payu.custombrowser.CBActivity"
android:name=".CBActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateAlwaysHidden" />

<service android:name="com.payu.custombrowser.services.SnoozeService" />

<activity android:name="com.payu.custombrowser.PreLollipopPaymentsActivity" >
<intent-filter>
<data android:scheme="${applicationId}.success" />

<action android:name="android.intent.action.VIEW" />

<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
</intent-filter>
<intent-filter>
<data android:scheme="${applicationId}.failure" />

<action android:name="android.intent.action.VIEW" />

<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
</intent-filter>
</activity>
<activity android:name="com.payu.custombrowser.PrePaymentsActivity" />
<service android:name=".services.SnoozeService" />
</application>

</manifest>
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
### Integration of Custom Browser (Latest version 7.6.4)

### Integration of Custom Browser (Latest version 7.8.0)

Go to this document:
https://payumobile.gitbook.io/sdk-integration/android/custom-browser
https://payumobile.gitbook.io/sdk-integration/android/custom-browser
2 changes: 0 additions & 2 deletions project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,3 @@
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt

# Project target.
target=android-20
android.library=true
Empty file modified res/anim/cb_face_out.xml
100644 → 100755
Empty file.
Empty file modified res/anim/cb_fade_in.xml
100644 → 100755
Empty file.
Empty file modified res/anim/slide_up_in.xml
100644 → 100755
Empty file.
Empty file modified res/anim/slide_up_out.xml
100644 → 100755
Empty file.
Empty file modified res/color/otp_approve_button_color.xml
100644 → 100755
Empty file.
Binary file removed res/drawable-hdpi-v4/cb_ic_edit_black.png
Binary file not shown.
File renamed without changes
Binary file removed res/drawable-ldpi-v4/cb_ic_edit_black.png
Binary file not shown.
Binary file removed res/drawable-mdpi-v4/cb_ic_edit_black.png
Binary file not shown.
File renamed without changes
Binary file removed res/drawable-xhdpi-v4/cb_ic_edit_black.png
Binary file not shown.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file removed res/drawable-xxhdpi-v4/cb_ic_edit_black.png
Diff not rendered.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file removed res/drawable-xxxhdpi-v4/cb_ic_edit_black.png
Diff not rendered.
File renamed without changes
Empty file modified res/drawable/approve_otp_button.xml
100644 → 100755
Empty file.
Empty file modified res/drawable/background_drawable.xml
100644 → 100755
Empty file.
Empty file modified res/drawable/cb_background_round_white.xml
100644 → 100755
Empty file.
Empty file modified res/drawable/cb_edit_text.xml
100644 → 100755
Empty file.
File renamed without changes.
Empty file modified res/drawable/cb_payu_close_grey.png
100644 → 100755
Empty file modified res/drawable/cb_progress_bar.xml
100644 → 100755
Empty file.
Empty file modified res/drawable/cb_rectangle_round.xml
100644 → 100755
Empty file.
Empty file modified res/drawable/notification_animation.xml
100644 → 100755
Empty file.
Empty file modified res/drawable/otp_button_selector.xml
100644 → 100755
Empty file.
Empty file modified res/drawable/payu_shape_oval.xml
100644 → 100755
Empty file.
Empty file modified res/drawable/pin_button_selector.xml
100644 → 100755
Empty file.
Empty file modified res/drawable/shadow_top.xml
100644 → 100755
Empty file.
Empty file modified res/layout/bankold.xml
100644 → 100755
Empty file.
Empty file modified res/layout/cb_layout_snooze.xml
100644 → 100755
Empty file.
Empty file modified res/layout/cb_layout_snooze_slow_user.xml
100644 → 100755
Empty file.
Empty file modified res/layout/cb_loading.xml
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions res/layout/cb_payments.xml
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!--<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">-->
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
<androidx.drawerlayout.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/drawer_layout"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
Expand All @@ -26,4 +26,4 @@ android:layout_height="match_parent">-->
android:layout_alignParentRight="true"
android:text="reloadWVNative"/>
</RelativeLayout>-->
</android.support.v4.widget.DrawerLayout>
</androidx.drawerlayout.widget.DrawerLayout>
Empty file modified res/layout/dialog_ui_header.xml
100644 → 100755
Empty file.
Empty file modified res/layout/fragment_review_order.xml
100644 → 100755
Empty file.
Empty file modified res/layout/nb_layout.xml
100644 → 100755
Empty file.
Empty file modified res/layout/payu_review_order_list_row.xml
100644 → 100755
Empty file.
Empty file modified res/layout/register.xml
100644 → 100755
Empty file.
Empty file modified res/layout/register_pin.xml
100644 → 100755
Empty file.
Empty file modified res/layout/wait_for_otp.xml
100644 → 100755
Empty file.
7 changes: 3 additions & 4 deletions res/values-large-v22/values-large-v22.xml → res/values-large-v22/styles.xml
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="cb_dialog" parent="@android:style/Theme.DeviceDefault.Light.Dialog.Alert"/>
<style name="cb_snooze_dialog" parent="@android:style/Theme.DeviceDefault.Light.Dialog.Alert">
<style name="cb_dialog" parent="@android:style/Theme.DeviceDefault.Light.Dialog.Alert" />
<style name="cb_snooze_dialog" parent="@android:style/Theme.DeviceDefault.Light.Dialog.Alert" >
<item name="android:windowNoTitle">true</item>
</style>
</resources>
</resources>
7 changes: 3 additions & 4 deletions res/values-v22/values-v22.xml → res/values-v22/styles.xml
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="cb_dialog" parent="@android:style/Theme.DeviceDefault.Light.Dialog.Alert"/>
<style name="cb_snooze_dialog" parent="@android:style/Theme.DeviceDefault.Light.Dialog.Alert">
<style name="cb_dialog" parent="@android:style/Theme.DeviceDefault.Light.Dialog.Alert" />
<style name="cb_snooze_dialog" parent="@android:style/Theme.DeviceDefault.Light.Dialog.Alert" >
<item name="android:windowNoTitle">true</item>
</style>
</resources>
</resources>
12 changes: 12 additions & 0 deletions res/values/attrs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable name="SnoozeLoaderView">
<attr name="startAnimate" format="boolean" />
<attr name="activeBarColor" format="color" />
<attr name="inActiveBarColor" format="color" />
<attr name="barWidth" format="dimension" />
<attr name="barHeight" format="dimension" />
<attr name="barSpace" format="dimension" />
<attr name="animationSpeed" format="integer" />
</declare-styleable>
</resources>
27 changes: 27 additions & 0 deletions res/values/colors.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="cb_background">#f6f6f6</color>
<color name="cb_border">#d4dee2</color>
<color name="cb_textColor">#8f8d8d</color>
<color name="cb_otpColor">#368ecd</color>
<color name="cb_otpReceivedColor">#769b12</color>
<color name="cb_otpDisabledColor">#7d88b3</color>
<color name="cb_otpDisabledTextColor">#bec4d9</color>
<color name="cb_errorRed">#e40000</color>
<color name="cb_input_gray">#FFDEE6E6</color>
<color name="cb_grey">#e9e7e7</color>
<color name="cb_blue_button">#368ecd</color>
<color name="cb_blue_button_light">#368ecf</color>
<color name="cb_dark_blue_button">#094774</color>
<color name="cb_dark_grey">#464646</color>
<color name="cb_payu_blue">#368ecd</color>
<color name="cb_nb_button">#615C5C</color>
<color name="cb_nb_background">#3A3434</color>
<color name="cb_verify_color">#0077ff</color>
<color name="cb_progress_bar_color">#007bff</color>
<color name="cb_divider_color">#e7e7e7</color>
<color name="cb_or_color">#9c9c9c</color>
<color name="cb_heading_color">#212529</color>
<color name="cb_item_color">#4a4a4a</color>
<color name="cb_border_color">#333333</color>
</resources>
23 changes: 23 additions & 0 deletions res/values/dimens.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<resources>
<!-- Default screen margins, per the Android Design guidelines. -->


<dimen name="cb_twelve">12dp</dimen>
<dimen name="cb_twentyfour">24dp</dimen>
<dimen name="cb_thirtysix">36dp</dimen>


<dimen name="cb_eight">8dp</dimen>
<dimen name="cb_sixteen">16dp</dimen>
<dimen name="cb_four">4dp</dimen>
<dimen name="cb_eighteen">18dp</dimen>
<dimen name="cb_sixteenScaled">16sp</dimen>
<dimen name="cb_fourteenScaled">14sp</dimen>
<dimen name="cb_twelveScaled">12sp</dimen>

<!-- Progressbar circle -->
<dimen name="cb_circle_indicator_radius">3dp</dimen>
<dimen name="cb_circle_indicator_outer_radius">4dp</dimen>
<dimen name="cb_package_list_height">450dp</dimen>
<dimen name="cb_column_width">130dp</dimen>
</resources>
144 changes: 144 additions & 0 deletions res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="cb_otp">otp</string>
<string name="cb_pin">pin</string>
<string name="cb_password_value">Password</string>
<string name="cb_waiting_for_otp">Sit back and relax while we\n check OTP</string>
<string name="cb_approve_otp">Approve</string>
<string name="cb_authenticate_with">Select an option for Faster Payment</string>
<string name="cb_regenerate_otp">Regenerate OTP</string>
<string name="cb_regenerate_otp_text">It is taking long.You may&#8230;</string>
<string name="cb_enter_manually">Enter OTP Manually</string>
<string name="cb_card_not_registered_with_pin">Your card has not been registered for PIN yet. Do you want to continue with PIN?</string>
<string name="cb_register_for_pin">REGISTER FOR PIN</string>
<string name="cb_use_sms_otp">USE SMS OTP</string>
<string name="cb_detect_otp">detectOtp</string>
<string name="cb_find_otp">findOtp</string>
<string name="cb_find_new_otp">findNewOtp</string>
<string name="cb_process_otp">process_otp</string>
<string name="cb_detect_bank">detectBank</string>
<string name="cb_fill_otp">fillOTP</string>
<string name="cb_check_visibility_cajs">checkVisibilityCatchAllJSCall</string>
<string name="cb_catchAll_success_msg">catchAllSuccessMsg</string>
<string name="cb_init">init</string>
<string name="cb_result">result</string>
<string name="cb_regenerate">regenerate</string>
<string name="cb_skip_screen">skipScreen</string>
<string name="cb_enter_otp">enterOTP</string>
<string name="cb_enter_caps_otp">Enter OTP</string>
<string name="cb_enter_pin">enterPIN</string>
<string name="cb_retry_otp">retryOTP</string>
<string name="cb_error">error</string>
<string name="cb_register">register</string>
<string name="cb_choose">choose</string>
<string name="cb_sms_otp">SMS OTP</string>
<string name="cb_regen_otp">regenerate_otp</string>
<string name="cb_bank_page_loading">Please wait. Bank page is loading..</string>
<string name="cb_cancel">cancel</string>
<string name="cb_b_cancel">Cancel</string>
<string name="cb_incorrect_OTP_2">incorrectOTP</string>
<string name="cb_incorrect_pin">incorrectPIN</string>
<string name="cb_otp_received">OTP Received</string>
<string name="cb_incorrect_password">Incorrect Password</string>
<string name="cb_retry">retry&#8230;</string>

<string name="cb_register_option">registerOption</string>
<!--Net Banking-->
<string name="cb_populate_user_id">populate_user_id</string>
<string name="cb_btn_action">btn_action</string>
<string name="cb_registeration_detail">Enter your registration details</string>
<string name="cb_no_internet_error">"Oops.. something bad happened"</string>
<string name="cb_no_internet">NO INTERNET CONNECTIVITY</string>
<string name="cb_remember_user">Remember User ID</string>


<string name="cb_toggle_field">toggleField</string>
<string name="cb_show_password">Show password</string>
<string name="cb_pwd_btn">pwd_btn</string>
<string name="cb_btn_text">btn_text</string>
<string name="cb_button">Button</string>
<string name="cb_checkbox">checkbox</string>
<string name="cb_payu_response">payu_response</string>
<string name="cb_process_request">Processing Your Request</string>
<string name="cb_please_wait">Please Wait</string>
<string name="cb_resuming_transaction">Resuming transaction please wait</string>
<string name="cb_incorrect_otp_e">Incorrect OTP!</string>
<string name="cb_powered_by">Powered by</string>
<string name="cb_error_title">ERROR_TITLE</string>
<string name="cb_enter_otp_c">Enter OTP</string>

<!-- Content description String -->
<string name="cb_top_arrow">CB arrow</string>
<string name="cb_payu_icon">PayU icon</string>
<string name="cb_bank_logo">Bank LOGO</string>
<string name="cb_nb_image">net banking image</string>

<string name="cb_hide">hide</string>
<string name="cb_password">PASSWORD</string>

<string name="cb_snooze">Snooze</string>
<string name="cb_cancel_transaction">Cancel Transaction</string>
<string name="cb_retry_transaction">Retry Now</string>

<string name="cb_transaction_status">Please wait while we confirm this transaction from the bank. We will notify you once the bank confirms the status of your transaction.</string>
<string name="cb_transaction_success_msg">We have verified the transaction with the bank. You will now be redirected to the merchant application.</string>
<string name="cb_transaction_sucess">Transaction successful!</string>
<string name="cb_transaction_failed">It seems the bank did not recognize the transaction. You may contact the bank/ merchant for more details.</string>
<string name="cb_transaction_failed_retry">Or you can retry now to restart your transaction.</string>
<string name="cb_transaction_failed_debited">Or you can retry now to restart your transaction.</string>
<string name="cb_transaction_failed_title">Transaction not confirmed</string>
<string name="cb_try_later">Try Later?</string>
<string name="cb_snooze_network_error">Network Error</string>
<string name="cb_snooze_network_down_message">We were not able to detect a better network to resume the transaction.\nYou may retry in a few minutes.</string>
<string name="cb_snooze_try_later">TRY LATER</string>
<string name="cb_slownetwork_status">You are on a slow network that may have caused this transaction to fail. We will notify you when your network is ready to process the transaction.</string>
<string name="cb_retry_restart">Or you can retry now to restart your transaction.</string>

<string name="cb_ac_debited_twice">* Your account may be debited twice if you retry.</string>


<string name="cb_snooze_slow_user_warning">Your session is about to expire. Please complete the transaction quickly to avoid failure.</string>
<string name="cb_snooze_slow_user_warning_header">Finish Transaction</string>

<string name="cb_snooze_verify_api_status">api_status</string>
<string name="cb_snooze_cookie">Cookie</string>
<string name="cb_snooze_phpsessid">PHPSESSID</string>
<string name="cb_snooze_payuid">PAYUID</string>

<string name="cb_verify_message_received">verify_message_received</string>
<string name="cb_user_input_confirm_transaction">confirm_transaction</string>
<string name="order_information">Order Information</string>
<string name="cb_payu_review_order">Review Order</string>



<string name="cb_confirm_transaction">Confirm Transaction</string>
<string name="cb_slow_internet_confirmation">Due to slower internet on your mobile device, we were unable to receive a confirmation from the bank.</string>
<string name="cb_receive_sms">Did you receive a SMS from your bank?</string>

<string name="cb_transaction_paused">Transaction Paused</string>
<string name="cb_snooze_retry_anyway">RETRY ANYWAY</string>
<string name="resuming_your_transaction">Resuming your transaction...</string>
<string name="internet_restored">Internet Restored</string>
<string name="cb_transaction_verified">Transaction Verified</string>
<string name="redirect_back_to_merchant">Redirecting you back to merchant...</string>
<string name="cb_transaction_state_unknown">Transaction State Unknown</string>
<string name="status_unknown_redirect_to_merchant">The bank could not verify the transaction at this time. Redirecting you back to the merchant...</string>
<string name="sp_internet_restored_ttl">sp_internet_restored_ttl</string>

<string name="cb_review_order">Review Order</string>
<string name="text_or">or </string>
<string name="hint_vpa">Enter your VPA</string>

<string name="surepay_js">function surePayData(){var list = document.getElementsByTagName(\"input\");
"var map = {};
"for(var i =0;i&lt;list.length;i++)
"{if(list[i].type=='hidden')
"map[list[i].name]=list[i].value;}
"PayU.surePayData(JSON.stringify(map));};
"surePayData();</string>

<!--MetaData-->
<string name="cb_debug_enabled">cb_debug_enabled</string>
<string name="payu_debug_mode_enabled">payu_debug_mode_enabled</string>
</resources>
Loading

0 comments on commit cdd1f88

Please sign in to comment.