startCardEntryActivity

fun startCardEntryActivity(activity: Activity, collectPostalCode: Boolean = true, requestCode: Int = DEFAULT_CARD_ENTRY_REQUEST_CODE)

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. When false, the postal code field will not be displayed. Defaults to true.

requestCode

This code will be returned in onActivityResult() when the activity exits. The default value is DEFAULT_CARD_ENTRY_REQUEST_CODE.

See also

to handle the result of the card entry activity.