Skip to content

Instantly share code, notes, and snippets.

@NajeebArif
Created June 10, 2021 21:26
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/6144c07d3146956a1072f549034dbd64 to your computer and use it in GitHub Desktop.
Save NajeebArif/6144c07d3146956a1072f549034dbd64 to your computer and use it in GitHub Desktop.
//...
@Override
@SneakyThrows
public void captureOrder(String orderId) {
final OrdersCaptureRequest ordersCaptureRequest = new OrdersCaptureRequest(orderId);
final HttpResponse<Order> httpResponse = payPalHttpClient.execute(ordersCaptureRequest);
log.info("Order Capture Status: {}",httpResponse.result().status());
}
//...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment