Skip to content

Commit

Permalink
Merge pull request #22 from cashfree/feature/new_version_android_2.1.20
Browse files Browse the repository at this point in the history
Android Version 2.1.20 updated
  • Loading branch information
kishan-cashfree authored Sep 11, 2024
2 parents aca21c1 + b5b15f3 commit f820551
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
9 changes: 1 addition & 8 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,6 @@ dependencies {
implementation 'androidx.compose.ui:ui-tooling-preview'
implementation 'androidx.compose.material3:material3'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'

implementation 'com.cashfree.pg:api:2.1.19'

androidTestImplementation platform('androidx.compose:compose-bom:2022.10.00')
androidTestImplementation 'androidx.compose.ui:ui-test-junit4'
debugImplementation 'androidx.compose.ui:ui-tooling'
debugImplementation 'androidx.compose.ui:ui-test-manifest'
implementation 'com.cashfree.pg:api:2.1.20'
}
4 changes: 2 additions & 2 deletions app/src/main/java/com/cashfree/sdk_sample/Config.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import com.cashfree.pg.core.api.upi.CFUPI

data class Config(
// CFSession Inputs
val orderID: String = "devstudio_95987450",
val paymentSessionID: String = "session_Diki726QGmNZ3GRLMjM0G5HdSQ3CoaQFsU6qLVY4NRrOr98KtY0MWbMRo0kD_jkDHilmYpXX2Iurk1bHlgUXKiyPOeKXKTc_yJsWb4qm4pXY",
val orderID: String = "devstudio_272366234679",
val paymentSessionID: String = "session_XMb4ZaTSh28_jDZUUYCnPunUc7qEG-du57oawTj1kgnqy5lrukxCtk23z5o2WQ12SzExpuSbKJH_U2-R4YRN5l1oL-2jzzuLiHYmu0lY800D",
val environment: CFSession.Environment = CFSession.Environment.SANDBOX,

//Card Payment Inputs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ public void doCardPayment(View view) {
.setCardExpiryMonth(cardMM)
.setCardExpiryYear(cardYY)
.setCVV(cardCVV)
.setChannel("post") //This will be required for merchant if they want native opt flow
.build();

//To Set your theme on Cashfree UI
Expand All @@ -152,9 +153,11 @@ public void doCardPayment(View view) {
.setCard(cfCard)
.build();
cfCardPayment.setTheme(theme);

/**
* To set Full Screen Loader UI before order pay network call.
* This is optional for merchants. If they specially want to show UI loader then only enable it.
* Note : If Merchant wants to use Native OTP flow in card payment then this is required.
*/
cfCardPayment.setCfSDKFlow(CFPayment.CFSDKFlow.WITH_CASHFREE_FULLSCREEN_LOADER);

Expand Down

0 comments on commit f820551

Please sign in to comment.