Payment Method Configuration 

The payment methods for PayPal are configured like any other payment method. All configuration options of Cart are available. The customer chooses between them in the cart, e.g. "PayPal" and "Credit card".

plugin.tx_cart {
    payments {
        ...
            options {
                2 {
                    provider = PAYPAL
                    title = PayPal
                    extra = 0.00
                    taxClassId = 1
                    status = open
                    available.from = 0.01
                }
                3 {
                    provider = PAYPAL_CREDITCARD
                    title = Credit card
                    extra = 0.00
                    taxClassId = 1
                    status = open
                    available.from = 0.01
                }
            }
        ...
    }
}
Copied!

If Cart reads the payment methods from the site settings (site set loader of Cart), the option is added to extcode.cart-payments in the same way:

config/sites/<site>/settings.yaml
extcode:
  cart-payments:
    countries:
      de:
        options:
          2:
            provider: PAYPAL
            title: PayPal
            extra: 0.0
            taxClassId: 1
            status: open
Copied!

|

Property
plugin.tx_cart.payments....options.n.provider
Data type
string
Description

Lets Cart PayPal take over the payment of the order.

  • PAYPAL: The customer pays with the PayPal button and logs in at PayPal.
  • PAYPAL_CREDITCARD: The customer pays with a debit or credit card in an overlay of PayPal, a PayPal account is not required.
Property
plugin.tx_cart.payments....options.n.preventClearCart
Data type
boolean
Description
Cart PayPal clears the cart before the customer pays. If the customer cancels the payment, the cart is restored. With preventClearCart = 1 the cart is kept.