public class OrderSummaryActivity extends AppCompatActivity implements ProcessOrderCallback, BillingInformationCollectionFragment.OnPaymentMethodChangeListener
Modifier and Type | Field and Description |
---|---|
static int |
CARD_REQUEST |
static java.lang.String |
EXTRA_ORDER |
Constructor and Description |
---|
OrderSummaryActivity() |
Modifier and Type | Method and Description |
---|---|
protected void |
onCreate(Bundle savedInstanceState) |
boolean |
onCreateOptionsMenu(Menu menu) |
boolean |
onOptionsItemSelected(MenuItem item) |
void |
onOrderProcessError(java.lang.Error error) |
void |
onOrderProcessSuccess(Receipt receipt) |
void |
onPaymentAdded(Payment payment)
Invoked whenever a new payment method was added.
|
void |
onPaymentRemoved(Payment payment)
Invoked whenever a payment method is deleted.
|
public static final java.lang.String EXTRA_ORDER
public static final int CARD_REQUEST
protected void onCreate(Bundle savedInstanceState)
public boolean onCreateOptionsMenu(Menu menu)
public boolean onOptionsItemSelected(MenuItem item)
public void onOrderProcessSuccess(Receipt receipt)
onOrderProcessSuccess
in interface ProcessOrderCallback
public void onOrderProcessError(java.lang.Error error)
onOrderProcessError
in interface ProcessOrderCallback
public void onPaymentAdded(Payment payment)
BillingInformationCollectionFragment.OnPaymentMethodChangeListener
onPaymentAdded
in interface BillingInformationCollectionFragment.OnPaymentMethodChangeListener
payment
- Object which was addedpublic void onPaymentRemoved(Payment payment)
BillingInformationCollectionFragment.OnPaymentMethodChangeListener
onPaymentRemoved
in interface BillingInformationCollectionFragment.OnPaymentMethodChangeListener
payment
- the payment method which was deleted