Created
March 16, 2019 09:14
-
-
Save sahoosunilkumar/a7301dd82aa87ac99dd21062b1fd8ab0 to your computer and use it in GitHub Desktop.
PaymentApproach2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Payment { | |
public Payment() { | |
initializePaytm(); | |
initializeGooglePay(); | |
initializePaypal(); | |
} | |
private void initializePaytm() { | |
// setup with paytm server | |
System.out.println("paytm server initialized"); | |
} | |
private void initializeGooglePay() { | |
// setup with paytm server | |
System.out.println("googlepay server initialized"); | |
} | |
private void initializePaypal() { | |
// setup with paytm server | |
System.out.println("paypal server initialized"); | |
} | |
public void payUsingPaytm() { | |
System.out.println("pay by paytm"); | |
} | |
public void payUsingGooglePay() { | |
System.out.println("pay by googlepay"); | |
} | |
public void payUsingPayPal() { | |
System.out.println("pay by paypal"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment