Skip to content

Commit

Permalink
Merge pull request #16 from cashfree/task/update_sample_code_webcheck…
Browse files Browse the repository at this point in the history
…out_flow

[WebCheckout]: Update Sample code for WebCheckout Flow
  • Loading branch information
arjun-cashfree committed Nov 2, 2023
2 parents 9f90ffa + 888a702 commit 6620cb3
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 6620cb3

Please sign in to comment.