Created
June 10, 2021 21:19
-
-
Save NajeebArif/9359281309da948bcf12b754b360ab10 to your computer and use it in GitHub Desktop.
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
@Service | |
public class PayPayPaymentService implements PaymentService{ | |
private final PayPalHttpClient payPalHttpClient; | |
public PayPayPaymentService(@Value("${paypal.clientId}") String clientId, | |
@Value("${paypal.clientSecret}") String clientSecret) { | |
payPalHttpClient = new PayPalHttpClient(new PayPalEnvironment.Sandbox(clientId, clientSecret)); | |
} | |
@Override | |
public CreatedOrder createOrder(Double totalAmount, URI returnUrl) { | |
return null; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment