Skip to content

Commit

Permalink
Update Sample code for WebCheckout Flow
Browse files Browse the repository at this point in the history
  • Loading branch information
kishan-cashfree committed Nov 2, 2023
1 parent 9f90ffa commit 888a702
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ public void doDropCheckoutPayment() {
.setSession(cfSession)
.setCFWebCheckoutUITheme(new CFWebCheckoutTheme.CFWebCheckoutThemeBuilder().build())
.build();
CFPaymentGatewayService.getInstance().doPayment(this, cfWebCheckoutPayment);
CFPaymentGatewayService gatewayService = CFPaymentGatewayService.getInstance();
gatewayService.doPayment(WebCheckoutActivity.this, cfWebCheckoutPayment);
} catch (CFException exception) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ class WebCheckoutActivity : AppCompatActivity(), CFCheckoutResponseCallback {
.setSession(cfSession)
.setCFWebCheckoutUITheme(CFWebCheckoutThemeBuilder().build())
.build()
CFPaymentGatewayService.getInstance().doPayment(this, cfWebCheckoutPayment)
val gatewayService = CFPaymentGatewayService.getInstance()
gatewayService.doPayment(this@WebCheckoutActivity, cfWebCheckoutPayment)
} catch (exception: CFException) {
Expand Down

0 comments on commit 888a702

Please sign in to comment.