Skip to content

1.2.0

Compare
Choose a tag to compare
@delias-silva delias-silva released this 16 Sep 16:34
· 693 commits to master since this release
ca749eb
  • Adjust to use only one HttpClient for all SDK requests
  • Addition of DiscountCampaign class to allow find a valid discount
  • Addition of MPRequestOptions to allow configure each request (configure access token, add headers, configure timeouts)
MPRequestOptions requestOptions = MPRequestOptions.builder()
                .setAccessToken("ACCESS_TOKEN")
                .build();
  • Added functionality to allow creation of a card token using card id
CardToken cardToken = new CardToken();
cardToken.setCustomerId("CUSTOMER_ID");
cardToken.setCardId("CARD_ID");
cardToken.setSecurityCode("123");
cardToken.save();