Back to Phoca Cart project (class list)

Class PhocacartPayment - list of methods

Class PhocacartPayment
Copyright: Copyright (C) Jan Pavelka https://www.phoca.cz
License: http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 and later
Located at: Phocacart/payment/payment.php
Project: Phoca Cart

Method Summary

public
()

Show source code of this method: __construct Source Code

public
(mixed $type = array(0, 1))

Show source code of this method: setType Source Code

public
(mixed $amountNetto, mixed $amountBrutto, mixed $country, mixed $region, mixed $shipping, mixed $id = 0, mixed $selected = 0)

Show source code of this method: getPossiblePaymentMethods Source Code

public bool|array
(mixed $id = 0, mixed $total = array(), mixed $shippingId = 0)

Check current payment method Payment method must be selected
Parameters
  • \number $id
Returns
  • bool|array
Show source code of this method: checkAndGetPaymentMethod Source Code

public bool|array
(mixed $selectedPaymentId = 0, mixed $selected = 0, mixed $total = array(), mixed $shippingId = 0)

Check current payment method or all methods they meet criteria to be selected
Parameters
  • \number $selectedPaymentId
  • \number $selected
Returns
  • bool|array
Show source code of this method: checkAndGetPaymentMethods Source Code

public static
(mixed $dataAddress)

Show source code of this method: getUserCountryPayment Source Code

public static
(mixed $dataAddress)

Show source code of this method: getUserRegionPayment Source Code

public
(mixed $paymentId)

Show source code of this method: getPaymentMethod Source Code

public
(mixed $paymentId, mixed $userId)

Store payment id inside checkout - if enabled in parameters and there is only one valid payment, it can be directly stored But then the cart needs to be reloaded to store the costs of the payment and make ready for payment (payment gets info about payment because of rules)
Parameters
  • $paymentId
  • $userId
Show source code of this method: storePaymentRegistered Source Code

public static
(mixed $type = 0, mixed $removeCoupon = 1)

Show source code of this method: removePayment Source Code

public static
(mixed $options = array())

Show source code of this method: isPaymentNotUsed Source Code

public static
(mixed $namePlugin = '')

Show source code of this method: getPaymentPluginMethods Source Code

public static
(mixed $payment)

Show source code of this method: proceedToPaymentGateway Source Code

public static
(mixed $id)

Show source code of this method: isPaymentMethodActive Source Code

public static
(mixed $id)

Show source code of this method: getInfoDescriptionById Source Code

public static mixed
(mixed $methodName, mixed $return = 3, mixed $onlyPublished = false)

Parameters
  • $methodName
  • int $return 1 ... Association list, 2 ... Object list, 3 ... ID (be aware when setting 3, only first ID will be returned even more methods with the same method name can exist)
  • bool $onlyPublished
Returns
  • mixed
Show source code of this method: getPaymentMethodIdByMethodName Source Code

public static
(mixed $order = 'id', mixed $type = array())

Show source code of this method: getAllPaymentMethods Source Code

public static
(mixed $paymentId, mixed $select = 0, mixed $table = 'shipping')

Show source code of this method: getPaymentMethods Source Code