Skip to content

Commit

Permalink
Update client UAT to be low scoped; update fetch orderID to use full …
Browse files Browse the repository at this point in the history
…scoped UAT
  • Loading branch information
scannillo committed Mar 17, 2020
1 parent c051288 commit 7c814ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public OrdersV2Client(RestTemplate restTemplate,

Order createOrder(CreateOrderRequest orderBody, String countryCode) {
HttpHeaders orderHeaders = new HttpHeaders();
orderHeaders.add("Authorization", "Bearer " + payPalTokenService.getLowScopedUAT(countryCode).getToken());
orderHeaders.add("Authorization", "Bearer " + payPalTokenService.getFullScopedUAT(countryCode).getToken());
orderHeaders.setContentType(MediaType.APPLICATION_JSON);

HttpEntity<CreateOrderRequest> orderRequest = new HttpEntity<>(orderBody, orderHeaders);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ UniversalAccessToken getUat(@RequestParam(value = "countryCode") String countryC
System.out.println("******************************");
System.out.println("REQUEST to /v1/oauth2/token:");
System.out.println("Country code: " + countryCode);
return payPalTokenClient.getFullScopedUAT(countryCode);
return payPalTokenClient.getLowScopedUAT(countryCode);
}

@PostMapping(path = "/order")
Expand Down

0 comments on commit 7c814ed

Please sign in to comment.