Package 

Class CardPaymentMethodJsonBuilder

  • All Implemented Interfaces:

    
    public class CardPaymentMethodJsonBuilder
    
                        

    This class provides methods to build PaymentMethod with type CARD in JSON format.

    • Constructor Detail

    • Method Detail

      • setAllowedAuthMethods

         CardPaymentMethodJsonBuilder setAllowedAuthMethods(@NonNull() JSONArray allowedAuthMethods)

        Required. Sets the fields supported to authenticate a card transaction. PAN_ONLY: This authentication method is associated with payment cards stored on file with the user's Google Account. Returned payment data includes personal account number (PAN) with the expiration month and the expiration year. CRYPTOGRAM_3DS: This authentication method is associated with cards stored as Android device tokens. Returned payment data includes a 3-D Secure (3DS) cryptogram generated on the device.

        Parameters:
        allowedAuthMethods - The allowed authentication methods.
      • setAllowCreditCards

         CardPaymentMethodJsonBuilder setAllowCreditCards(boolean allowCreditCards)

        Optional (Required for UK Gambling merchants). Sets if credit cards are allowed.

        Parameters:
        allowCreditCards - Set to false if you don't support credit cards.
      • setBillingAddressParameters

         CardPaymentMethodJsonBuilder setBillingAddressParameters(@Nullable() String format, boolean phoneNumberRequired)

        Optional. Sets billing address parameters. The expected fields returned if billingAddressRequired is set to true.

        Parameters:
        format - Billing address format required to complete the transaction.
        phoneNumberRequired - Set to true if a phone number is required to process the transaction.