Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 871 Bytes

checkout_cart_payment.md

File metadata and controls

34 lines (25 loc) · 871 Bytes

Checkout Cart Payment

Allows you to retrieve a list of available payment methods for a shopping cart (quote).

magento.checkoutCartPayment.list({
  quoteId:    val,
  storeView:  val  /* optional */
}, callback);

Allows you to set a payment method for a shopping cart (quote).

data is an array of shoppingCartPaymentMethodEntity objects.

magento.checkoutCartPayment.method({
  quoteId:      val,
  paymentData:  [ val, val, val ],
  storeView:    val  /* optional */
}, callback);

// or a single cell of payment data

magento.checkoutCartPayment.method({
  quoteId:      val,
  paymentData:  val,
  storeView:    val  /* optional */
}, callback);