Skip to content

Instantly share code, notes, and snippets.

@NajeebArif
Created June 10, 2021 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NajeebArif/9359281309da948bcf12b754b360ab10 to your computer and use it in GitHub Desktop.
Save NajeebArif/9359281309da948bcf12b754b360ab10 to your computer and use it in GitHub Desktop.
@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