Package 

Object CardEntry


  • 
    public class CardEntry
    
                        

    Lets the application collect card information from the customer.

    • Method Detail

      • startCardEntryActivity

         final Unit ,Boolean,Integer)>startCardEntryActivity(<ERROR CLASS> activity, Boolean collectPostalCode, Integer requestCode)

        Starts an activity that lets the application collect card information from the customer.

        Parameters:
        activity - The activity instance from which to start the card entry activity.
        collectPostalCode - Indicates that the customer must enter the postal code associated with their payment card.
        requestCode - This code will be returned in onActivityResult() when the activity exits.
      • startGiftCardEntryActivity

         final Unit ,Integer)>startGiftCardEntryActivity(<ERROR CLASS> activity, Integer requestCode)

        ******************* BETA API ******************* Starts an activity that lets the application collect gift card information from the customer.

        Parameters:
        activity - The activity instance from which to start the card entry activity.
        requestCode - This code will be returned in onActivityResult() when the activity exits.
      • handleActivityResult

         final Unit ,Callback)>handleActivityResult(<ERROR CLASS> data, Callback<CardEntryActivityResult> callback)

        Use this function to handle results of the card entry activity. This function should be called from Activity.onActivityResult with the provided data parameter. callback will be called immediately with the result of the card entry activity.

        The callback is executed on the main thread.

        Parameters:
        data - The data parameter from Activity.
        callback - A callback that will be immediately called back, if data corresponds to the result of a card entry activity.
      • setCardNonceBackgroundHandler

         final Unit setCardNonceBackgroundHandler(CardNonceBackgroundHandler handler)

        Sets an optional handler that will be called from a background thread with the card result, before the card entry activity finishes. This allows the application to perform additional work such as attempting to charge the card and offers the ability to retry (for instance in case of a network error).