Skip to content

Instantly share code, notes, and snippets.

@hitherejoe
Created May 26, 2016 15:06
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 hitherejoe/468d20f0bcfcc0100c01ba61ba8d4bba to your computer and use it in GitHub Desktop.
Save hitherejoe/468d20f0bcfcc0100c01ba61ba8d4bba to your computer and use it in GitHub Desktop.
MaskedWalletRequest request = MaskedWalletRequest.newBuilder()
.setMerchantName(MERCHANT_NAME)
.setPhoneNumberRequired(true)
.setShippingAddressRequired(true)
.setCurrencyCode(Constants.CURRENCY_CODE_GBP)
.setEstimatedTotalPrice(cartTotal)
.setCart(Cart.newBuilder()
.setCurrencyCode(Constants.CURRENCY_CODE_USD)
.setTotalPrice(cartTotal)
.setLineItems(lineItems)
.build())
.setPaymentMethodTokenizationParameters(parameters)
.build();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment