Class CardPaymentMethodJsonBuilder

  • All Implemented Interfaces:

    
    public class CardPaymentMethodJsonBuilder
    
                        

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

    • Constructor Detail

      • CardPaymentMethodJsonBuilder

        CardPaymentMethodJsonBuilder()
    • Method Detail

      • setAllowPrepaidCards

         CardPaymentMethodJsonBuilder setAllowPrepaidCards(boolean allowPrepaidCards)

        Optional. Sets if prepaid card are allowed.

        Parameters:
        allowPrepaidCards - Set to false if you don't support prepaid cards.
        Returns:

        a reference to this object.

      • 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.
        Returns:

        a reference to this object.

      • setAssuranceDetailsRequired

         CardPaymentMethodJsonBuilder setAssuranceDetailsRequired(boolean assuranceDetailsRequired)

        Optional. Sets if assurance details are required.

        Parameters:
        assuranceDetailsRequired - Set to true to request assuranceDetails.
        Returns:

        a reference to this object.

      • setBillingAddressRequired

         CardPaymentMethodJsonBuilder setBillingAddressRequired(boolean billingAddressRequired)

        Optional. Sets if billing address is required.

        Parameters:
        billingAddressRequired - Set to true if you require a billing address.
        Returns:

        a reference to this object.

      • 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.
        Returns:

        a reference to this object.

      • 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.
        Returns:

        a reference to this object.